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

Syntax

string getUrl()

Description

Gets the URL of the map that is currently displayed by Autodesk MapGuide Viewer.

The returned URL includes parameters that describe the current map location and the parameters that control the state of the various Autodesk MapGuide user interface elements.

For the ActiveX Control and Plug-In, 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.

Returns

String - A string that represents the URL of the map.

Error Codes

-1 (busy): For ActiveX Control and Plug-In only.

"" (empty string)

See Also

setUrl, URL, FullUrl