Maptitude GISDK Help |
Sets the current map measurement unit.
SetMapUnits(string unit_name)
Argument |
Contents |
unit_name |
The measurement unit (in the plural format) |
Valid units include Miles, Kilometers, Yards, Meters, Feet, and other units whose names are obtained with GetMapUnitNames().
Use SetMapUnits() to change the system from English units to metric units.
SetMapUnits() changes the measurement unit for all open maps.
SetMapUnits("Miles")
SetMapUnits("Kilometers")
Error Type |
Meaning |
Error |
The measurement unit is not recognized |
Function |
Summary |
Gets a list of the available area measurement units |
|
Gets the current area measurement units |
|
Gets a list of the available map measurement units |
|
Gets the current map measurement units |
|
Gets a list of the available paper measurement units |
|
Gets the current paper measurement unit |
|
Sets the current area measurement units |
|
Set the display names for units, to be used in drop-down lists and legends |
|
Sets the current paper measurement unit |
©2025 Caliper Corporation | www.caliper.com |