mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 19:04:02 +00:00
fix: use globe terrain when framing an ALPR camera
This commit is contained in:
1 parent
fe1aa3b6f6
commit
bcba7c5c01
4 files changed
+12
-2
No files matched your search
@@ -276,6 +276,8 @@ export function createAlprPresentation({ state, services, source }) {
|
||||
/* tiles may still be streaming */
|
||||
}
|
||||
}
|
||||
if (!Number.isFinite(height) && state.viewer.scene.globe.show)
|
||||
height = state.viewer.scene.globe.getHeight?.(location);
|
||||
if (!Number.isFinite(height) || height < -500 || height > 10000)
|
||||
height = cachedGroundFloor(record.latitude, record.longitude);
|
||||
const center = Cesium.Cartesian3.fromDegrees(
|
||||
|
||||
Reference in new issue
Block a user