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

Syntax

double getScale()

Description

Gets the current map display scale in terms of 1:scale.

Returns

double - The map display scale.

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 message box showing the current map scale:

function showScale()
{
    alert ( "Scale is 1:" + getMap().getScale() + ".");
}

See Also

setScale, MapScale