From 938599d9b2332af9f60223fefcd98c0451508323 Mon Sep 17 00:00:00 2001 From: Willian Galvani Date: Tue, 1 Dec 2020 20:05:38 -0300 Subject: [PATCH] Cesium: remove now-useless code that prevented camera from going underground This was fixed in https://github.com/CesiumGS/cesium/pull/8504 --- src/components/CesiumViewer.vue | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/components/CesiumViewer.vue b/src/components/CesiumViewer.vue index 6290cd03..407193d7 100644 --- a/src/components/CesiumViewer.vue +++ b/src/components/CesiumViewer.vue @@ -24,7 +24,6 @@ import { PointPrimitiveCollection, IonImageryProvider, Entity, - SceneMode, ScreenSpaceEventHandler, ScreenSpaceEventType, knockout, @@ -131,15 +130,6 @@ export default { this.viewer.shadowMap.softShadows = true this.viewer.shadowMap.size = 4096 - this.viewer.camera.changed.addEventListener( - () => { - if (this.viewer.camera._suspendTerrainAdjustment && this.viewer.scene.mode === SceneMode.SCENE3D) { - this.viewer.camera._suspendTerrainAdjustment = false - this.viewer.camera._adjustHeightForTerrain() - } - } - ) - // Attach hover handler let handler = new ScreenSpaceEventHandler(this.viewer.scene.canvas) handler.setInputAction(this.onMove, ScreenSpaceEventType.MOUSE_MOVE)