mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
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.
10 lines
416 B
JavaScript
10 lines
416 B
JavaScript
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();
|