Hello,
We have some code that creates a series of PointShapes, with a column called "name". I create an InMemoryFeatureLayer to display these points, as such, added it to a LayerOverlay, and add that to our map:
layerPoints.ZoomLevelSet.ZoomLevel08.DefaultPointStyle = PointStyles.City5
layerPoints.ZoomLevelSet.ZoomLevel08.DefaultPointStyle.SymbolType = PointSymbolType.Circle
layerPoints.ZoomLevelSet.ZoomLevel08.DefaultPointStyle.SymbolSize = symSize
layerPoints.ZoomLevelSet.ZoomLevel08.DefaultPointStyle.SymbolPen.Color = GeoColor.StandardColors.White
layerPoints.ZoomLevelSet.ZoomLevel08.DefaultPointStyle.SymbolSolidBrush.Color = GeoColor.StandardColors.DarkRed
layerPoints.ZoomLevelSet.ZoomLevel08.DefaultTextStyle = TextStyles.Capital3("NAME")
layerPoints.ZoomLevelSet.ZoomLevel08.DefaultTextStyle.XOffsetInPixel = 6
layerPoints.ZoomLevelSet.ZoomLevel08.DefaultTextStyle.BestPlacement = True
layerPoints.ZoomLevelSet.ZoomLevel08.DefaultTextStyle.HaloPen.Color = GeoColor.StandardColors.White
layerPoints.ZoomLevelSet.ZoomLevel08.DefaultTextStyle.HaloPen.Width = 1
layerPoints.ZoomLevelSet.ZoomLevel08.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20
What we have found, once we switched to version 9 from 8, is that the names are almost unreadable, due to the halo around the text. In version 8, it looked fine, but the exact same code in version 9 looks terrible. If I comment out the two lines dealing with the HaloPen, the text looks good. However, if I set the HaloPen width to 0, the halo still appears, and the text looks bad. Has something changed that would cause this?
Issue with HaloPen in Version 9
Hi Dib,
We tested your code with 9.0 and 8.0, it looks just the same.
So if possible, please upload a simple sample with dlls, if our dlls is big please let us know your detail dll version so we can reproduce that.
Regards,
Don