diff --git a/web/client/components/map/cesium/Map.jsx b/web/client/components/map/cesium/Map.jsx index db38b2b1d8..79af27a3a5 100644 --- a/web/client/components/map/cesium/Map.jsx +++ b/web/client/components/map/cesium/Map.jsx @@ -192,6 +192,9 @@ class CesiumMap extends React.Component { } } + // Allow camera to clip through surface for viewing underground objects. + map.scene.screenSpaceCameraController.enableCollisionDetection = this.props.mapOptions?.enableCollisionDetection ?? true; + this.forceUpdate(); map.scene.requestRender(); } diff --git a/web/client/configs/localConfig.json b/web/client/configs/localConfig.json index 7703f683e3..2138f96311 100644 --- a/web/client/configs/localConfig.json +++ b/web/client/configs/localConfig.json @@ -40,6 +40,7 @@ "showGroundAtmosphere": false, "enableFog": false, "depthTestAgainstTerrain": false, + "enableCollisionDetection": true, "terrainProvider": { "type": "ellipsoid" }