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

Syntax

void setScale(double scale)

Description

Sets the current map display scale in terms of 1:scale.

The map will refresh centered at the current longitude/latitude using the new scale value.

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

scale - The new map scale. The value must be greater than 0.

Error Codes

-1 (busy)

-3 (illegal argument)

See Also

getScale, MapScale