Does the NoOverlapping rule apply to a single layer or across the entire map? If I have two different layers, one for highways and one for residential streets, and they both have text styles set, should I expect that labels from one layer will not overlap labels from another layer?
Example:
Dim t As TextStyle
t=TextStyles.CreateSimpleTextStyle("Name", "Arial", 10, DrawingFontStyles.Regular, GeoColor.StandardColors.Black, GeoColor.StandardColors.White, 4)
t.OverlappingRule = LabelOverlappingRule.NoOverlapping
t.DuplicateRule = LabelDuplicateRule.OneDuplicateLabelPerQuadrant
layerHighways.ZoomLevelSet.ZoomLevel01.CustomStyles.Add(t)
layerHighways.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20
layerStreets.ZoomLevelSet.ZoomLevel01.CustomStyles.Add(t)
layerStreets.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20
Thanks,
Serena
LabelOverlappingRule.NoOverlapping
Hi Serena,
It looks the NoOverlapping works for all layers in same overlay but not for whole map.
Regards,
Don
That makes sense. So as long as the two different layers are in the same overlay, labels from one layer should not overlap labels from the other layer, correct?
Thanks!
Hi Serena,
That’s right.
Regards,
Don