mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
Keep installation and local GeoJSON pick state off Cesium entities
Installation selection fills and outlines record the installation they
belong to in the layer's installationMarkers store instead of an
installationId expando, and the click handler resolves them from there.
Named-marker points keep their { installationId } pick payload, which is
the app's own object, so sibling layers treat a point click as before; the
marker remembers its record id for visit() instead of reading the point.
The local GeoJSON package tracks the entities each layer loaded in a
per-instance set instead of a __localLayerId tag, and passes the stem
base to registerEntityContext as targetPosition instead of hanging it on
the entity; FIRMS does the same, and voice targeting reads the context
record. QA scripts find a layer's features by their context id.
This commit is contained in:
1 parent
0889cd0cb7
commit
08985d5083
13 files changed
+58
-28
No files matched your search
@@ -3,5 +3,7 @@ import { createEntityStore } from '../../data/entityRecords.js';
|
||||
/**
|
||||
* What the installations layer last drew for a retained marker entity, so an
|
||||
* unchanged record leaves it alone: `heightM` (surface height) and `selected`.
|
||||
* Selection fills and outlines record the installation they belong to as
|
||||
* `recordId`, which a pick on them resolves through.
|
||||
*/
|
||||
export const installationMarkers = createEntityStore();
|
||||
Reference in new issue
Block a user