mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 10:53:59 +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
@@ -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 = {};
|
||||
|
||||
Reference in new issue
Block a user