| MGMap.getScale |
|
double getScale()
Gets the current map display scale in terms of 1:scale.
double - The map display scale.
none
The following example is designed to work with the Tutorial.mwf file that is included with Autodesk MapGuide Author. It displays a message box showing the current map scale:
function showScale()
{
alert ( "Scale is 1:" + getMap().getScale() + ".");
}