ThinkGeo.com    |     Documentation    |     Premium Support

Recommended way for drawing rotated styled points

I have a bunch of points using a style of PointType.Glyph. Currently, if I want to rotate glyph, I am overriding the DrawCore function on the style and manually drawing the text that the glyph represents (I actually made a post about this years ago Rotation of points using PointType.Character ).

Is this still the recommended way, or is there something simpler? For instance, I see there is a Rotate() function on BaseShape. Will this function rotate the style as well, or just the underlying location of the shape.

Thanks,
Dan

hi @Dan_Weaver,

I’m glad you asked. Yes, now there’s a simpler way for rotation.

var pointStyle = new PointStyle(PointSymbolType.Triangle, 18, GeoBrushes.Blue, new GeoPen(GeoBrushes.White, 2));
pointStyle.RotationAngle = 90f;

image

Regards,
Leo

Thanks! just tested and it works great.

Great. Let me know if you have other questions.

Regards,
Leo