| MGMap.zoomGotoDlg |
|
void zoomGotoDlg()
Displays the Zoom Goto dialog box, where the user specifies the zoom width as well as either a place (location) or an address or a ZIP code to zoom to.
This method is the equivalent of the Zoom > Zoom Goto menu command in the user interface.
This method overrides the autoRefresh flag and always refreshes the map. Subsequent method calls adhere to the original setting of the autoRefresh flag.
Note that this method does not work during a busy state. For additional information about the busy state, refer to "Handling Busy State and Map Refresh" in the Autodesk MapGuide Developer's Guide.. Also note that zoomGotoDlg does not work when called from event-handling code for onViewChanging or onMapLoaded. If you call zoomGotoDlg from these events, the method will fail and will set the error code to -14 (refresh disabled).
-1 (busy)
-14 (refresh disabled)
This example is designed to work with the Tutorial.mwf file that is included with Autodesk MapGuide Author. It displays the Zoom GoTo dialog box:
function showZoomGoTo()
{
getMap().zoomGoToDlg();
}