| MGMap.getApiVersion |
|
string getApiVersion()
Gets the Autodesk MapGuide Viewer API version.
String - The version of the Autodesk MapGuide Viewer API, which will be one of the following:
none
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());
}