Hi @Ethan please Check this code is there anything wrong. When we are using this code whole Graticule layer is coming as small tiles with coordinates.
LineStyle customDashLineStyle = LineStyles.CreateSimpleLineStyle(GeoColor.FromArgb(Convert.ToInt32(_GraticuleColor.Split(’,’)[0]), Convert.ToInt32(_GraticuleColor.Split(’,’)[1]), Convert.ToInt32(_GraticuleColor.Split(’,’)[2]), Convert.ToInt32(_GraticuleColor.Split(’,’)[3])), 1, LineDashStyle.Custom, true);
customDashLineStyle.CenterPen.DashPattern.Add(4f);
customDashLineStyle.CenterPen.DashPattern.Add(4f);
customDashLineStyle.CenterPen.DashPattern.Add(4f);
customDashLineStyle.CenterPen.DashPattern.Add(4f);
GraticuleFeatureLayer graticuleAdornmentLayer = new GraticuleFeatureLayer(_proj);
//graticuleAdornmentLayer.WrappingMode = WrappingMode.WrapDateline;
//graticuleAdornmentLayer.WrappingExtent = _proj.ConvertToExternalProjection(new RectangleShape(-180, 90, 180, -90));
graticuleAdornmentLayer.GraticuleLineStyle = customDashLineStyle;
LayerOverlay graticuleAdornmentLayerOverlay = ((LayerOverlay)wfMap.CustomOverlays[“AllOverlays”]);
if (graticuleAdornmentLayerOverlay.Layers.Contains(“GraticuleAdornmentLayer”))
graticuleAdornmentLayerOverlay.Layers.Remove(“GraticuleAdornmentLayer”);
graticuleAdornmentLayerOverlay.Layers.Add(“GraticuleAdornmentLayer”, graticuleAdornmentLayer);
Graticule Issue when using TileType.multipleTile
Hi Bibek,
Please set this property:
graticuleAdornmentLayerOverlay.TileType = TileType.SingleTile;
And it should works.
Regards,
Ethan
Single Tile is working well. But we want it as multiple Tile.
Hi Bibek,
Set the graticuleAdornmentLayerOverlay as single tile don’t effect your other overlay.
Could you please let us know why you have to set this overlay to multiply tiles?
Regards,
Ethan
We don’t want to create a extra overlay for graticule only.
Hi Bibek,
The graticule cannot draw the lines like single tile when you use multiply tiles.
Do you have other layer which don’t need use multiply tiles? You can put these layers into the same overlay.
Regards,
Ethan
Hi Bibek,
Any question please let us know.
Regards,
Ethan