require(["esri/views/3d/analysis/AreaMeasurementAnalysisView3D"], (AreaMeasurementAnalysisView3D) => { /* code goes here */ });
import AreaMeasurementAnalysisView3D from "@arcgis/core/views/3d/analysis/AreaMeasurementAnalysisView3D.js";
esri/views/3d/analysis/AreaMeasurementAnalysisView3D
Represents the esri/views/3d/analysis/AnalysisView3D of an AreaMeasurementAnalysis after it has been added to SceneView.analyses.
The AreaMeasurementAnalysisView3D is responsible for rendering a AreaMeasurementAnalysis using custom visualizations. The properties on the analysis view provide developers with the ability to query measured results.
The view for an analysis can be retrieved using SceneView.whenAnalysisView similar to how layer views are retrieved for layers using SceneView.whenLayerView.
// retrieve analysis view for analysis
const analysis = new AreaMeasurementAnalysis();
sceneView.analyses.add(analysis); // add to the scene view
const analysisView = await view.whenAnalysisView(analysis);
Property Overview
Name | Type | Summary | Class |
---|---|---|---|
AreaMeasurementAnalysis | The area measurement analysis object associated with the analysis view. more details | AreaMeasurementAnalysisView3D | |
AreaMeasurementAnalysisResult | Result of the area measurement. more details | AreaMeasurementAnalysisView3D | |
String | The analysis view type. more details | AreaMeasurementAnalysisView3D | |
Boolean | When | AreaMeasurementAnalysisView3D |
Property Details
-
analysis AreaMeasurementAnalysisreadonly
-
The area measurement analysis object associated with the analysis view.
-
Result of the area measurement.
-
type Stringreadonly
-
The analysis view type.
For AreaMeasurementAnalysisView3D the type is always "area-measurement-view-3d".
-
visible Boolean
-
When
true
, the analysis is visualized in the view.
Type Definitions
-
AreaMeasurementAnalysisResult
-
Result obtained from an AreaMeasurementAnalysis.
- Properties
-
mode String
Describes the mode in which the measurement was taken. In
euclidean
mode, the area and perimeter length are computed from a flat polygon with straight segments on the perimeter in the ECEF coordinate system. Ingeodesic
mode, the area and perimeter length are computed from a geodesic polygon on the WGS84 ellipsoid.Possible Values:"euclidean"|"geodesic"
area AreaMeasured area quantity.
pathLength LengthMeasured circumference of the measured area.