MGMap.zoomScale   Go to object model Go to parent topic Go to previous topic Go to next topic

Syntax

boolean zoomScale(double lat, double lon, double scale)

Description

Zooms to the specified map center (lat, lon) and scale.

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.

Parameters

lat - Latitude (Y) center of map window.

lon - Longitude (X) center of map window. scale - Map scale to zoom to.

Returns

boolean - Returns True if successful; otherwise, returns False.

Error Codes

-1 (busy)

-3 (illegal argument)

See Also

zoomScaleDlg