| MGMap.getVersion |
|
string getVersion()
Gets the version string of the Autodesk MapGuide Viewer.
String - The Autodesk MapGuide version.
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 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());
}
Version, getViewerType, getApiVersion