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 |
---|---|---|---|
The area measurement analysis object associated with the analysis view. | AreaMeasurementAnalysisView3D | ||
Result of the area measurement. | AreaMeasurementAnalysisView3D | ||
The analysis view type. | AreaMeasurementAnalysisView3D | ||
When | AreaMeasurementAnalysisView3D |
Property Details
-
analysis
analysis AreaMeasurementAnalysisreadonly
-
The area measurement analysis object associated with the analysis view.
-
result
result AreaMeasurementAnalysisResult
-
Result of the area measurement. Results are calculated asynchronously and should be watched for changes.
-
type
type Stringreadonly
-
The analysis view type.
For AreaMeasurementAnalysisView3D the type is always "area-measurement-view-3d".
-
visible
visible Boolean
-
When
true
, the analysis is visualized in the view.
Type Definitions
-
Result obtained from an AreaMeasurementAnalysis.
- Properties
-
mode String
Describes the mode in which the measurement is computed. 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 AreaArea of the polygon.
pathLength LengthPerimeter length of the polygon.