Skip to content

Commit 544a1f6

Browse files
committed
解决高程值异常的问题
1 parent 8b3a045 commit 544a1f6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cesiumjs/manager/SceneManager.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ export default class SceneManager {
137137
longitudeString = Cesium.Math.toDegrees(cartographic.longitude);
138138
latitudeString = Cesium.Math.toDegrees(cartographic.latitude);
139139
cameraHeight = Math.ceil(that.viewer.camera.positionCartographic.height);
140-
height = Math.max(that.viewer.scene.globe.getHeight(cartographic), cartographic.height);
140+
// height = Math.max(that.viewer.scene.globe.getHeight(cartographic), cartographic.height);
141+
height = cartographic.height;
141142
longlatHeight = `经度:${longitudeString.toFixed(4)}°,纬度:${latitudeString.toFixed(4)}°,海拔高度:${height.toFixed(0)}米,相机视角高度:${cameraHeight.toFixed(0)}米`;
142143
}
143144
let strHpr = '';

0 commit comments

Comments
 (0)