import Units from "@arcgis/core/views/interactive/support/Units.js";
Inheritance
Units→Accessor
Subclasses
Units
Since
ArcGIS Maps SDK for JavaScript 5.2

Units used for displaying or interpreting values in the UI while sketching, editing, or placing analyses.

Each quantity accepts a specific unit or measurement system ("metric" or "imperial").

See also

Constructors

Constructor

Constructor

Parameters

ParameterTypeDescriptionRequired
properties
See the properties table for a list of all the properties that may be passed into the constructor.

Properties

Any properties can be set, retrieved or listened to. See the Watch for changes topic.

area

Property
Type
SystemOrAreaUnit | null | undefined

Area units.

declaredClass

readonlyinherited Property
Type
string
Inherited from: Accessor
Since
ArcGIS Maps SDK for JavaScript 4.7

The name of the class. The declared class name is formatted as esri.folder.className.

length

Property
Type
SystemOrLengthUnit | null | undefined

Length units.

verticalLength

Property
Type
SystemOrLengthUnit | null | undefined

Vertical length units.

volume

Property
Type
SystemOrVolumeUnit | null | undefined

Volume units.