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

Syntax

string getVersion()

Description

Gets the version string of the Autodesk MapGuide Viewer.

Returns

String - The Autodesk MapGuide version.

Error Codes

none

Example

The following example is designed to work with the Tutorial.mwf file that is included with Autodesk MapGuide Author. It displays a dialog box showing the Autodesk MapGuide version number:

function whatsTheVersion()
{
    var msg = getMap().getVersion();
    alert("Viewer is version " + msg);
}

Here's another way to write the same function:

function whatsTheVersion()
{
    alert("Viewer is version " + getMap().getVersion());
}

See Also

Version, getViewerType, getApiVersion