ThinkGeo.com    |     Documentation    |     Premium Support

More Labeling Questions

Hello,

I’m trying to figure out why the labels are not showing at all zoom levels, and how to get them to do so regardless of overlap.

As you can see, the boxes get labeled up until, I’m assuming, the text would be bigger than the polygon.
How can I override this so the labels are always shown?

I’m using the current style. I’ve been kind of throwing parameters at it to see if it makes any difference, so if there’s something wrong there please let me know.

layer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle = new TextStyle(“LABEL”, new GeoFont(“Segoe UI”, 12, DrawingFontStyles.Bold), GeoBrushes.Black) {
FittingPolygon = true,
HaloPen = new GeoPen(GeoBrushes.White, 2),
DrawingLevel = DrawingLevel.LabelLevel,
AllowLineCarriage = true,
OverlappingRule = LabelOverlappingRule.AllowOverlapping,
SuppressPartialLabels = false,
AllowLabelNudging = true,
DuplicateRule = LabelDuplicateRule.UnlimitedDuplicateLabels,
TextLineSegmentRatio = 1,
FittingLineInScreen = true
};

layer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;

Regards,

Aaron

Hi Aaron,

Just comment out the following line.
FittingPolygon = true,

Thanks,
Ben

That did it. Thanks.

Sure! Just let us know for more questions.