Represents the analysis view of a DirectLineMeasurementAnalysis after it has been added to SceneView.analyses.
The DirectLineMeasurementAnalysisView3D is responsible for rendering a DirectLineMeasurementAnalysis 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 DirectLineMeasurementAnalysis(); sceneView.analyses.add(analysis); // add to the scene view const analysisView = await view.whenAnalysisView(analysis);
The direct line measurement analysis object associated with the analysis view.more details
Result of the direct line measurement.more details
The analysis view type.more details
The direct line measurement analysis object associated with the analysis view.
Result of the direct line measurement.
The analysis view type.
For DirectLineMeasurementAnalysisView3D the type is always "direct-line-measurement-view-3d".
true, the analysis is visualized in the view.
Result obtained from a DirectLineMeasurementAnalysis. Whether the
distanceis euclidean or geodesic is specified by the
modeproperty. Note: Euclidean measurement is exact only if the spatial reference of the scene view is WGS84 or WebMercator, otherwise it's approximated by a scalar factor derived from the spatial reference.
Specifies whether the
distancemeasurement uses euclidean or geodesic units.
Possible Values:"euclidean"|"geodesic"distance Length
Measured distance between start and endpoint.horizontalDistance Length
Horizontal distance measured as the euclidean distance between the point with higher elevation and the other point with its elevation changed to match the first point's elevation (moved along surface normal). Note: This is exact only if the spatial reference of the scene view is WGS84 or WebMercator, otherwise it's approximated by a scalar factor derived from the spatial reference.verticalDistance Length
Vertical distance measured as the absolute difference of the elevation of the two points. Note: This is exact only if the spatial reference of the scene view is WGS84 or WebMercator, otherwise it's approximated by a scalar factor derived from the spatial reference.