selecting point on map and returning coordinates

697
3
Jump to solution
07-26-2012 11:27 AM
JeffAli
New Contributor
Hello,

I'd like to be able to select a point on my mapview and return the latitude and longitude. Does anyone know how this can be accomplished?

Thanks.
0 Kudos
1 Solution

Accepted Solutions
NimeshJarecha
Esri Regular Contributor
Use AGSGeometryEngine's projectGeometry method and project your point to [AGSSpatialReference wgs84SpatialReference].

Regards,
Nimesh

View solution in original post

0 Kudos
3 Replies
niuruigang
New Contributor
you can by AGSMapViewTouchDelegate's didClickAtPoint method do that as flow:
-(void)mapView:(AGSMapView *) mapView didClickAtPoint:(CGPoint) screen mapPoint:(AGSPoint *)mappoint graphics:(NSDictionary *) graphics
0 Kudos
AmilaSilva
New Contributor
Thank you. Using that delegate method I can retrieve the value as map units using the mapPoint:(AGSPoint *)mappoint parameter. But how do I convert it to actual latitude and longitude values?
0 Kudos
NimeshJarecha
Esri Regular Contributor
Use AGSGeometryEngine's projectGeometry method and project your point to [AGSSpatialReference wgs84SpatialReference].

Regards,
Nimesh
0 Kudos