Hi Ethan,
I am facing some strange issue. I am applying wrapping for all layers. Initial loading time each layer wrapping fine.
But Some times while panning it’s coming like this.(Features are not rending correctly,it’s moving to some other place)
I don’t know, what’s wrong over there for it. i didn’t even using Map extent changed and mouse move events. Map is rendering automatically whenever pan or zoom it.
please check this issue for ‘Graticule Layer’.
Code:
Proj4Projection _proj = new Proj4Projection();
_proj.InternalProjectionParametersString = Proj4Projection.GetEpsgParametersString(4326);
_proj.ExternalProjectionParametersString = Proj4Projection.GetEsriParametersString(54004);
LineStyle customDashLineStyle = LineStyles.CreateSimpleLineStyle(GeoColor.FromArgb(100,0,0,255), 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 = new LayerOverlay("GraticuleAdornmentOverlay",false,TileType.SingleTile);
graticuleAdornmentLayerOverlay.TileType = TileType.SingleTile;
graticuleAdornmentLayerOverlay.IsBaseOverlay = false;
graticuleAdornmentLayerOverlay.Layers.Add("GraticuleAdornmentLayer", graticuleAdornmentLayer);
wfMap.CustomOverlays.Add(graticuleAdornmentLayerOverlay);
Thanks,
Riyaz