quantity

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

Quantity type used to represent measurements across the JS API.

Type Definitions

Angle
Properties
value Number

Scalar value representing a angle.

unit AngleUnit

Any unit which represents an angle.

type String

Unit type.

The value is always "angle".

Area
Properties
value Number

Scalar value representing a area.

unit AreaUnit

Any unit which represents area.

type String

Unit type.

The value is always "area".

Length
Properties
value Number

Scalar value representing a length.

unit LengthUnit

Any unit which represents length.

type String

Unit type.

The value is always "length".

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