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

Syntax

string getUnits()

Description

Gets the current units that will be used when getting or setting the MapWidth property, or when using getWidth or setWidth without specifying the Units parameter.

Not to be confused with the coordinate system units, which the user can set to control the distance units in the Autodesk MapGuide Viewer, or default width units, which the map author uses to set the default width of the MWF in the Properties dialog box in Autodesk MapGuide Author.

Returns

String - One of the following: M (meters), KM (kilometers), FT (feet), or MI (miles)

Error Codes

none

See Also

MapUnits, getWidth, setWidth