AreaMeasurementAnalysisView3D

AMD: require(["esri/views/3d/analysis/AreaMeasurementAnalysisView3D"], (AreaMeasurementAnalysisView3D) => { /* code goes here */ });
ESM: import AreaMeasurementAnalysisView3D from "@arcgis/core/views/3d/analysis/AreaMeasurementAnalysisView3D.js";
Class: esri/views/3d/analysis/AreaMeasurementAnalysisView3D

Represents the analysis view 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 true, the analysis is visualized in the view.

AreaMeasurementAnalysisView3D

Property Details

analysis

Property
analysis AreaMeasurementAnalysisreadonly

The area measurement analysis object associated with the analysis view.

result

Property
result AreaMeasurementAnalysisResult

Result of the area measurement. Results are calculated asynchronously and should be watched for changes.

type

Property
type Stringreadonly

The analysis view type.

For AreaMeasurementAnalysisView3D the type is always "area-measurement-view-3d".

visible

Property
visible Boolean

When true, the analysis is visualized in the view.

Type Definitions

AreaMeasurementAnalysisResult

Type Definition
AreaMeasurementAnalysisResult

Result obtained from an AreaMeasurementAnalysis.

Properties
mode String|null

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. In geodesic mode, the area and perimeter length are computed from a geodesic polygon on the WGS84 ellipsoid.

Possible Values:"euclidean"|"geodesic"

area Area|null

Area of the polygon.

perimeter Length|null

Perimeter length of the polygon.

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