AreaMeasurement3DViewModel
require(["esri/widgets/AreaMeasurement3D/AreaMeasurement3DViewModel"], function(AreaMeasurement3DViewModel) { /* code goes here */ });esri/widgets/AreaMeasurement3D/AreaMeasurement3DViewModelProvides the logic for the AreaMeasurement3D widget.
- See also:
Constructors
- Parameter:properties Objectoptional
See the properties for a list of all the properties that may be passed into the constructor.
Property Overview
| Name | Type | Summary | Class | |
|---|---|---|---|---|
| measurement | Object | The current measurement of the area. more details | more details | AreaMeasurement3DViewModel |
| state | String | The view model's state. more details | more details | AreaMeasurement3DViewModel |
| unit | String | Unit system (imperial, metric) or specific unit used for displaying the distance values. more details | more details | AreaMeasurement3DViewModel |
| unitOptions | String[] | List of unit systems (imperial, metric) and specific units for displaying the area values. more details | more details | AreaMeasurement3DViewModel |
| view | SceneView | The view from which the widget will operate. more details | more details | AreaMeasurement3DViewModel |
Property Details
- measurementObjectreadonly
The current measurement of the area.
- Properties:
- measurementMode String
Describes the mode in which the measurement was taken. In
euclideanmode, the area and perimeter length are computed from a flat polygon with straight segments on the perimeter in the ECEF coordinate system. Ingeodesicmode, the area and perimeter length are computed from a geodesic polygon on the WGS84 ellipsoid.Possible Values: euclidean | geodesic
area MeasurementValueThe area of the polygon.
perimeterLength MeasurementValueThe perimeter length of the polygon.
- stateStringreadonly
The view model's state.
Value Description disabled not ready yet ready ready for measuring measuring currently measuring - Default Value:disabled
- unitString
Unit system (imperial, metric) or specific unit used for displaying the distance values.
Possible Values: imperial | metric | square-inches | square-feet | square-yards | square-miles | square-meters | square-kilometers | square-us-feet | acres | ares | hectares
- unitOptionsString[]
List of unit systems (imperial, metric) and specific units for displaying the area values.
- Default Value:["metric", "imperial", "square-inches", "square-feet", "square-yards", "square-miles", "square-us-feet", "square-meters", "square-kilometers", "acres", "ares", "hectares"]
- viewSceneView
The view from which the widget will operate.
Method Overview
| Name | Return Type | Summary | Class | |
|---|---|---|---|---|
| clearMeasurement() | Clears the current measurement. more details | more details | AreaMeasurement3DViewModel |
Method Details
Clears the current measurement.
Type Definitions
- MeasurementValueObject
Measurement value.
- Properties:
- text String
Textual representation of the measured value.
state StringState of the measured value.
Value Description available measured value is available unavailable measured value is not available due an incomplete measurement invalid measured value is not available due to an invalid measurement configuration (e.g. self-intersecting polygon)
API Reference search results
| Name | Type | Module |
|---|