Skip to content
import Units from "@arcgis/core/views/interactive/sketch/Units.js";
Inheritance:
UnitsAccessor
Since
ArcGIS Maps SDK for JavaScript 5.0
beta

Units used for displaying or interpreting values in the UI.

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
beta

Area units.

Default value
null

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
beta

Length units.

Default value
null

verticalLength

Property
Type
SystemOrLengthUnit | null | undefined
beta

Vertical length units.

Default value
null