The text of the map visual elements is painted using the System.Drawing.Graphics class and its DrawString method. By default, the text orientation is set to Horizontal. You can change this by creating a custom MapVisualElementFactory and change how the elements are painted:
public class CustomMapVisualElementFactory : MapVisualElementFactory
{
public override MapVisualElement CreatePolygon(Collection<PointG> points)
{
CustomMapPolygon polygon = new CustomMapPolygon(points);
return polygon;
}
}
public class CustomMapPolygon : MapPolygon
{
public CustomMapPolygon(IEnumerable<PointG> points)
: base(points)
{ }
public override void Paint(IGraphics graphics, IMapViewport viewport)