1

Using the ArcGIS JavaScript API v4.24 it's possible to get the Extent of a SceneView::

The extent represents the visible portion of a map within the view

This works as expected in a 2D MapView, or in a SceneView as viewed from above. But when tipping the SceneView over into 3D perspective, the extent no longer matches the visible extent.

To illustrate, this sample draws a red polygon on the scene to represent the SceneView.extent boundaries. Use the right mouse-button to tip the scene into perspective view:

screenshot of 3D scene

Note that the rectangle represents the extent of the 2D map as viewed from above, not the scene as viewed in 3D perspective view.

Is it possible to obtain the true visible extent of the scene?

1 Answer 1

1

I guess this limitation is covered by the disclaimer on the Scene Extent page:

Traditional 2D mapping properties, such as scale, zoom, center and extent do not always work well in 3D... The SceneView therefore supports these properties on a best effort basis, with certain limitations... The nature of 3D viewing includes oblique views, z-values, and rotation, all of which add complexity to defining what is visible in the view

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.