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

+6
View File
@@ -1093,6 +1093,8 @@ test('nearby count and discovery control frame a real loaded camera without fetc
);
h.viewer.camera.flyToBoundingSphere = (sphere, options) =>
flights.push({ sphere, options });
h.viewer.scene.globe.show = true;
h.viewer.scene.globe.getHeight = () => 312;
try {
assert.equal(alprCamerasLayer.getRowControls().chips[0].disabled, true);
await alprCamerasLayer.update();
@@ -1106,6 +1108,10 @@ test('nearby count and discovery control frame a real loaded camera without fetc
assert.ok(
Math.abs(Cesium.Math.toDegrees(center.latitude) - 30.2672) < 1e-9,
);
assert.ok(
Math.abs(center.height - 312) < 1e-6,
'use the rendered globe floor on keyless basemaps',
);
assert.equal(flights[0].options.offset.range, 800);
assert.equal(h.requests.length, 1);
h.viewer.trackedEntity = {};