Maptitude GISDK Help |
Gets a list of the available map measurement units.
In Version 2018 added the format types "Display Abbreviation", "Display Singular", and "Display Plural".
map_units = GetMapUnitNames(string format_type)
Argument |
Contents |
format_type |
Format of the measurement unit: "Abbrev", "Singular", "Plural, "Display Abbrev", "Display Singular", or "Display Plural" . If null, Plural is the default. |
An array of strings listing available map measurement units.
With the "Display" format types, GetMapUnitNames() returns the corresponding "Display" version that was set up with SetDisplayUnits().
m1 = GetMapUnitNames("Plural") |
// m1 is {"Miles", "Kilometers", ...} |
m2 = GetMapUnitNames("Singular") |
// m2 is {"Mile", "Kilometer", ...} |
m3 = GetMapUnitNames("Abbreviation") |
// m3 is {"mi", "km", ...} |
Error Type |
Meaning |
Error |
format_type is incorrectly specified |
Function |
Summary |
Gets a list of the available area measurement units |
|
Gets the current area 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 map measurement units |
|
Sets the current paper measurement unit |
©2025 Caliper Corporation | www.caliper.com |