Skip to content

A spy satellite simulator in your browser, except the data is real. Live open source spatial intelligence on a photorealistic 3D globe.

Merge remote-tracking branch 'origin/main' into feat/alpr-visual-treatment

Sameh Khamisfdf030cbc9a9
diff --cc scripts/package-boundaries.json
index f5992b52a,74ec4b078..7caa160d1
--- a/scripts/package-boundaries.json
+++ b/scripts/package-boundaries.json
@@@ -925,9 -938,8 +938,10 @@@
"src/layers/alpr/model.js",
"src/layers/alpr/policy.js",
"src/layers/alpr/presentation.js",
+ "src/layers/alpr/visuals.js",
+ "src/layers/alpr/overlay.js",
- "src/layers/alpr/source.js"
+ "src/layers/alpr/source.js",
+ "src/data/inputOwnership.js"
],
"external": ["cesium"]
},
diff --cc src/layers/alpr/presentation.js
index 35fcb19be,508d923ed..decebcd27
--- a/src/layers/alpr/presentation.js
+++ b/src/layers/alpr/presentation.js
@@@ -427,11 -377,11 +428,13 @@@ export function createAlprPresentation(
viewer.scene.canvas,
);
state.clickHandler.setInputAction((click) => {
+ // A tool owns the pointer (src/data/inputOwnership.js): yield the click.
+ if (!isPointerFree()) return;
if (!state.enabled) return;
const picked = viewer.scene.pick(click.position);
- const id = typeof picked?.id?.id === 'string' ? picked.id.id : null;
+ const id =
+ overlay.pick(click.position) ||
+ (typeof picked?.id?.id === 'string' ? picked.id.id : null);
if (
id &&
state.recordById.has(id) &&