| MGMap.zoomWidth |
|
boolean zoomWidth(double lat, double lon, double width, String units)
Zooms to the specified map center and width.
This method always refreshes the map when the autoRefresh flag is set to True or when called from the onViewChanging or onMapLoaded events.
Note that this method does not work during a busy state.
lat - Latitude (Y) center of map window.
lon - Longitude (X) center of map window.
width - Map width to zoom to.
unit - One of the following: M (meters), KM (kilometers), FT ('feet'), MI ('miles'), "", and null.
boolean - Returns True if successful; otherwise, returns False.
-1 (busy)
-3 (illegal argument)