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

Syntax

void zoomSelected()

Description

Zooms to an extent covering the selected map features.

If no features are selected, the method has no effect. This method is the equivalent of the Zoom > Zoom Selected menu command in the user interface.

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.

Error Codes

-1 (busy)

See Also

getSelection, Selection