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

Syntax

double getMCSScaleFactor()

Description

Gets the conversion factor to convert from the current Mapping Coordinate System (MCS) to meters.

The MCS can vary based on factors such as the current projection of the map.

Returns

double - The conversion factor to convert from MCS to Meters.

Error Codes

none

Example

This simple function is designed to work with the Tutorial.mwf file that is included with Autodesk MapGuide Author. It displays the MCS-to-meters conversion factor:

function mcsConversionFactor()
{
    alert("Conversion factor is " + getMap().getMCSScaleFactor());
}

See Also

MCSScaleFactor