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

Syntax

string getApiVersion()

Description

Gets the Autodesk MapGuide Viewer API version.

Returns

String - The version of the Autodesk MapGuide Viewer API, which will be one of the following:

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 API version:

function whatsTheApi()
{
    var msg = getMap().getApiVersion();
    alert("API version is: " + msg);
}

Here's another way to write the same function:

function whatsTheApi()
{
    alert("API version is: " + getMap().getApiVersion());
}

See Also

ApiVersion