AGSGeometryEngine* engine = [AGSGeometryEngine defaultGeometryEngine]; AGSPoint* mapPoint = self.mapView.visibleAreaEnvelope.center; AGSPoint* wgs84Point = (AGSPoint*)[engine projectGeometry:mapPoint toSpatialReference:[AGSSpatialReference wgs84SpatialReference]]; LongCentro.text = [NSString stringWithFormat:@Long: %.4f, wgs84Point.x];
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.