I’m creating a graticule feature layer like so:
var graticuleAdornmentLayer = new GraticuleFeatureLayer
{
DrawingMarginInPixel = 10
};
graticuleAdornmentLayer.GraticuleLineStyle.OuterPen.Color = GeoColor.FromArgb(125, GeoColor.StandardColors.Navy);
graticuleAdornmentLayer.Name = GlobalVars.GridLayer;
gridOverlay.Layers.Add(GlobalVars.GridLayer, graticuleAdornmentLayer);
gridOverlay.TileType = TileType.SingleTile;
graticuleAdornmentLayer.WrappingExtent = worldOverlay.GetBoundingBox();
graticuleAdornmentLayer.WrappingMode = WrappingMode.WrapDateline;
gridOverlay.WrappingExtent = worldOverlay.GetBoundingBox(); //overlay containing the grid layer
gridOverlay.WrappingMode = WrappingMode.WrapDateline;
This works fine. However I noticed that at certain zoom levels when the window is smaller, all the lat/long values get scrunched up.
Here’s two pics of what I’m seeing:
If I expand the window, I have no problem at any zoom level seeing the grid lines. Is there a way to fix this?