Monday, September 8, 2014

Zoom to particular location in iOS ArcGIS

//Zooming to an initial envelope with the specified spatial reference of the map
AGSSpatialReference *sr = [AGSSpatialReference webMercatorSpatialReference];
    
AGSEnvelope *env = [AGSEnvelope envelopeWithXmin:-14631218.265139 ymin:8384478.275350 xmax:-9170290.964017 ymax:2245708.599438  spatialReference:sr];
    

[self.mapView zoomToEnvelope:env animated:YES];

No comments:

Post a Comment