▾
import Units from "@arcgis/core/views/interactive/sketch/Units.js";const Units = await $arcgis.import("@arcgis/core/views/interactive/sketch/Units.js");- Since
- ArcGIS Maps SDK for JavaScript 5.0
Units used for displaying or interpreting values in the UI.
Constructors
Constructor
Constructor
- Since
- ArcGIS Maps SDK for JavaScript 5.2
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| 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.
| Property | Type | Class |
|---|---|---|
| inherited | ||
| readonly inherited | ||
| inherited | ||
| inherited | ||
| inherited |
area
inherited Property
- Type
- SystemOrAreaUnit | null | undefined
Inherited from: Units
- Since
- ArcGIS Maps SDK for JavaScript 5.2
Area units.
length
inherited Property
- Type
- SystemOrLengthUnit | null | undefined
Inherited from: Units
- Since
- ArcGIS Maps SDK for JavaScript 5.2
Length units.
verticalLength
inherited Property
- Type
- SystemOrLengthUnit | null | undefined
Inherited from: Units
- Since
- ArcGIS Maps SDK for JavaScript 5.2
Vertical length units.
volume
inherited Property
- Type
- SystemOrVolumeUnit | null | undefined
Inherited from: Units
- Since
- ArcGIS Maps SDK for JavaScript 5.2
Volume units.