ThinkGeo.com    |     Documentation    |     Premium Support

How to add wrapping to SimpleMarkerOverlay

hello,
we are adding a maker(.png) on first and the last point on the route the code works perfectly till we cross the dateline . and how can we add wrapping to SimpleMarkerOverlay.
thanks and regards
hrishikesh konde.

Hi Hrishikesh,

If the SimpleMarkerOverlay don’t have the API about wrapping, that means it don’t support that.

But if you only need to add a png as start point and end point, I think you can use other layer to implement that, as below is some code for reference, it only shows the thinking, you can implement your logic based on it.

InMemoryFeatureLayer layer = new InMemoryFeatureLayer();
        layer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle = new PointStyle(GeoImage);

        LayerOverlay overlay = new LayerOverlay();
        overlay.WrappingMode = WrappingMode.WrapDateline;

        overlay.Layers.Add(layer);

Regards,

Ethan