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-nautical-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.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close