How to convert MapPoint to latitude/longitude in ArcGIS for Xamarine Android? Below is my code.

MapPoint pointGeometry = new MapPoint(e.Location.X, Location.Y,SpatialReferences.Wgs84);

1 Answer 1


This plagued me for a bit...here's the answer.

The MapPoint can be expressed in either Wgs84 (latitude / longitude) or WebMercator which is some other system of coordinates.

Since you specified SpatialReferences.Wgs84 your pointGeometry will be a MapPoint where the X value is the longitude and the Y is the latitude.

How does one get a Wgs84 (latitude / longitude ) point from a MapPoint that is WebMercator?

This did the job for me:

MapPoint mpLatLon = Esri.ArcGISRuntime.Geometry.GeometryEngine.Project(mapPointObjectToConvert, SpatialReferences.Wgs84) as MapPoint;

Then mpLatLon.X is your longitude and mpLatLon.Y is your latitude.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.