require(["esri/core/units"], (units) => { /* code goes here */ });
import * as units from "@arcgis/core/core/units.js";
esri/core/units
Types of units used across the JS API.
Type Definitions
-
AngleUnit
AngleUnit String
-
Units for angles.
Possible Values:"degrees" |"radians"
-
AreaUnit
AreaUnit String
-
Units for areas.
Possible Values:"square-millimeters" |"square-centimeters" |"square-decimeters" |"square-meters" |"square-kilometers" |"square-inches" |"square-feet" |"square-yards" |"square-miles" |"square-us-feet" |"acres" |"ares" |"hectares"
-
ElevationUnit
ElevationUnit LengthUnit |String
-
Units for elevations.
Possible Values:LengthUnit |"decimal-degrees" |"unknown"
-
LengthUnit
LengthUnit String
-
Units for lengths.
Possible Values:"millimeters" |"centimeters" |"decimeters" |"meters" |"kilometers" |"inches" |"feet" |"yards" |"miles" |"nautical-miles" |"us-feet"
-
MeasurementSystem
MeasurementSystem String
-
Measurement systems.
Possible Values:"imperial" |"metric"
-
SystemOrAreaUnit
SystemOrAreaUnit MeasurementSystem |AreaUnit
-
Measurement systems or an area units.
-
SystemOrLengthUnit
SystemOrLengthUnit MeasurementSystem |LengthUnit
-
Measurement system or an length unit.
-
Unit
Unit LengthUnit |AreaUnit |VolumeUnit |AngleUnit
-
Units for angles.
-
VolumeUnit
VolumeUnit String
-
Units for volumes.
Possible Values:"liters" |"cubic-millimeters" |"cubic-centimeters" |"cubic-decimeters" |"cubic-meters" |"cubic-kilometers" |"cubic-inches" |"cubic-feet" |"cubic-yards" |"cubic-miles"