Select to view content in your preferred language

zoomToEnvelope or centerAtPoint without updating data from server

2062
2
06-03-2010 08:51 AM
DavidFarmer
Emerging Contributor
Hello,

     First and foremost, thank you for the hard work that is required to provide such a sophisticated mobile map server solution.

     Is there a way to set the center point or envelope without the view requesting data from the server ( just move the cached data in the view and leave the rest blank until we request it )?  Very important and we appreciate any assistance in achieving this task.

Regards,
David Farmer
Coolfire Solutions
0 Kudos
2 Replies
JithenSingh
Esri Contributor
Hi David,

Yes there is. Call this function when the view is loaded. This is after the main view is loaded.

Cheers


- (void)mapViewDidLoad:(AGSMapView *)mapView {
 
 
 AGSEnvelope *envelope = [AGSEnvelope envelopeWithXmin:1566595.54567948 
                    ymin:5176399.625 
                    xmax:1573200.79567948 
                    ymax:5183800.625 
                    spatialReference:mapView.spatialReference];
 
 [self.mapView zoomToEnvelope:envelope animated:YES];
       
        
}
0 Kudos
DavidFarmer
Emerging Contributor
I am controlling the movement of the map procedurally and wish to do the interpolation myself ( it is pushing coordinates to other UIViews ).  Currently if I am panning a map in your demos the data is not requested from the server until the user stops navigating ( no touches ).  I would like to implement this behavior in my model avoiding overloading the server with requests in certain situations.  While pushing coordinates to the map I would like to be able to have the coordinates update but not the map data ( no server requests until I need for them ).

Does this make sense?

regards,
David Farmer
0 Kudos