AGSPoint* gpsPoint = [[AGSPoint alloc] initWithX:location.coordinate.longitude y:location.coordinate.latitude spatialReference:[AGSSpatialReference wgs84SpatialReference]]; AGSGeometryEngine* engine = [AGSGeometryEngine defaultGeometryEngine]; AGSPoint* mapPoint = (AGSPoint*) [engine projectGeometry:gpsPoint toSpatialReference:self.mapView.spatialReference];
double x =mapPoint.x; double y =mapPoint.y;
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.