Draw CCTV camera icons through the renderer ports and take rendering.js off the Cesium list

The camera icons are now a draw-port icon set kept by an icon book; only
icons a view pass or restyle changes are written, in one write per pass.
Picks read the renderer's hit, the view pass and focus pass project
through the camera pose (geo/frustum.js poseProjector, matching the
renderer's projection and near clip) and the query port, and tile
readiness for ground sampling comes from the globe port.
This commit is contained in:
Sameh Khamis committed 2026-11-08 09:38:24 -08:00
1 parent 2a607ec4d8
commit 1d08043bf9
20 files changed
+810 -457

No files matched your search

-1
View File
@@ -10,7 +10,6 @@
"src/data/geoImportPins.js",
"src/input/dispatcher.js",
"src/input/sensorPick.js",
"src/layers/cctv/rendering.js",
"src/layers/firms/rendering.js",
"src/layers/ghostMaps/index.js",
"src/layers/installations/rendering.js",
+9
View File
@@ -78,6 +78,15 @@ export function createIconBook(drawSet = null, { capabilities = null } = {}) {
else if (expiresAt !== undefined) expiries.set(item.id, expiresAt);
drawSet?.upsert([item]);
},
/**
* Draw several items at once, as `put` draws one (a restyle: each keeps
* its motion's expiry), in one write to the set.
*/
putMany(list) {
if (!list.length) return;
for (const item of list) items.set(item.id, item);
drawSet?.upsert(list);
},
remove(id) {
expiries.delete(id);
if (items.delete(id)) drawSet?.remove([id]);
+6
View File
@@ -86,6 +86,9 @@ const DRAW_FROM_CALLER = new Set([
'./layers/street-level/panoramax',
'./layers/air-quality',
'./layers/directions',
// Its icons, wireframes, volumes, plane and gizmo draw through `drawOf`;
// it picks, projects and reads the eye and the globe through the ports.
'./layers/cctv',
// Its data packs draw through `drawOf`; its flights ask `cameraOf`, which
// throws until then too.
'./scenes',
@@ -116,6 +119,9 @@ const CAMERA_FROM_CALLER = new Set([
'./ui/navigation',
'./voice/commands',
'./voice/controller',
// It loaded the camera factory only through the CCTV layer it took a
// constant from.
'./voice/actions',
'./voice/realtime-session',
]);