fix: use globe terrain when framing an ALPR camera

This commit is contained in:
Sameh Khamis committed 2026-09-13 20:42:48 -07:00
1 parent fe1aa3b6f6
commit bcba7c5c01
4 files changed
+12 -2

No files matched your search

+2
View File
@@ -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(