Skip to content

Commit b03f4f7

Browse files
authored
Merge pull request #1028 from openlayers/rm_camera_workaround
Remove workaround to prevent camera from going underground
2 parents 88ee99a + 9a444f8 commit b03f4f7

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/olcs/OLCesium.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -296,14 +296,6 @@ class OLCesium {
296296

297297
const eventHelper = new Cesium.EventHelper();
298298
eventHelper.add(this.scene_.postRender, OLCesium.prototype.updateTrackedEntity_, this);
299-
300-
// Cesium has a mechanism to prevent the camera to go under the terrain.
301-
// Unfortunately, it is only active when all the terrain has been loaded, which:
302-
// - does not prevent the camera to sink under terrain anymore;
303-
// - introduce a jumping effect once all terrain has been loaded and the position of the camera is finally fixed.
304-
// The property below enables a workaround found in the Camptocamp Cesium fork.
305-
// See also https://github.com/AnalyticalGraphicsInc/cesium/issues/5999.
306-
Cesium.Camera.enableSuspendTerrainAdjustment = false;
307299
}
308300

309301
/**

0 commit comments

Comments
 (0)