This sample shows how to create a local scene clipped to a specific extent. Two layers are added to the scene in this sample - a layer depicting oil and gas wells in southern Kansas and another showing the locations of nearby earthquakes. These layers are rendered on the surface as well as below the surface of the scene.

You may navigate underneath the basemap to view the exact location of the earthquakes in relation to the true locations and depths of nearby oil and gas wells.
The viewingMode attribute of the Scene Component determines whether the scene is global
or local
. Set clippingArea to define the bounds of the local scene.
The navigationConstraint property on the Ground controls the user's ability to navigate below the surface.
// Create a local scene
<arcgis-scene basemap="topo-vector" viewing-mode="local">
// Setting the navigationConstraint on the ground to be of type "none"
// will allow the user to navigate the camera below the surface.
viewElement.map.ground = {
navigationConstraint: {
type: "none",
},
};
// Use the exent defined in clippingArea to define the bounds of the scene
viewElement.clippingArea = kansasExtent;