|     Documentation    |     Premium Support

Apply projection on CurrentExtent

How can I apply projection to CurrentExtent?

I have a Feature Layer with a specific projection. I want to show and also hide WMSMapLayer with also a specific projection.

There is the same issue in How to keep the same currentextent after projection. but when I apply projection on CurrentExtent, the map becomes zoom out.

Thanks Mahdi,
Do you have a sample project. We could look into the detail. In mapsuite v12. We use the project converter object to do the project convert.

  ProjectionConverter projectionConverter = new ProjectionConverter(4326, 3857);
            mapView.CurrentExtent = projectionConverter.ConvertToExternalProjection(mapView.CurrentExtent);