Hi,
I am trying to label polygonal shapes on my map using a text style. Here's a code fragment illustrating my approach:
myTextStyle = new TextStyle(IdFileIdColumn, new GeoFont("Consolas", 10F),new GeoSolidBrush(GeoColor.StandardColors.Black))
{
SuppressPartialLabels = true,
OverlappingRule = LabelOverlappingRule.NoOverlapping,
FittingPolygonFactor = 0.8,
FittingPolygon = true
};
myShapeFile.ZoomLevelSet.GetZoomLevels()[zoomLevelIndex - 1].CustomStyles.Add(myTextStyle);
The labels are frequently displayed outside the corresponding polygon's boundary. Is there a better way of handling this issue ?