units

AMD: require(["esri/core/units"], (units) => { /* code goes here */ });
ESM: import * as units from "@arcgis/core/core/units.js";
Object: esri/core/units
Since: ArcGIS Maps SDK for JavaScript 4.18

Types of units used across the JS API.

Type Definitions

AngleUnit

Type Definition
AngleUnit String

Units for angles.

Possible Values:"degrees" |"radians"

AreaUnit

Type Definition
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

Type Definition
ElevationUnit LengthUnit |String

Units for elevations.

Possible Values:LengthUnit |"decimal-degrees" |"unknown"

LengthUnit

Type Definition
LengthUnit String

Units for lengths.

Possible Values:"millimeters" |"centimeters" |"decimeters" |"meters" |"kilometers" |"inches" |"feet" |"yards" |"miles" |"nautical-miles" |"us-feet"

MeasurementSystem

Type Definition
MeasurementSystem String

Measurement systems.

Possible Values:"imperial" |"metric"

SystemOrAreaUnit

Type Definition
SystemOrAreaUnit MeasurementSystem |AreaUnit

Measurement systems or an area units.

SystemOrLengthUnit

Type Definition
SystemOrLengthUnit MeasurementSystem |LengthUnit

Measurement system or an length unit.

Unit

Type Definition
Unit LengthUnit |AreaUnit |VolumeUnit |AngleUnit

Units for angles.

VolumeUnit

Type Definition
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"

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.