Files
gods-eye-view/src/layers/alpr/markerState.js
T
Sameh Khamis 393a145137 Keep ALPR marker state in a layer store instead of on Cesium entities
The ALPR layer's private per-entity fields (record, clamp, canvas and display
anchors, wedge, native appearance, pick position, shown, surface check) move
from gevAlpr* expandos into alprMarkers, a store made by the new
createEntityStore(). The shared entity records are built on the same factory.
2026-11-03 08:24:33 -08:00

15 lines
724 B
JavaScript

/**
* @module alpr/markerState
* @description The ALPR layer's own per-marker state, held in the app rather than on the
* Cesium entities it draws:
* - `record`: the camera record the marker shows.
* - `clamped`: whether the marker sits on the surface rather than at its height.
* - `canvasPosition`, `displayPosition`: the canvas anchor and the position the card reads.
* - `wedge`: the direction wedge's positions.
* - `nativeAppearance`, `pickPosition`: the native look saved while the canvas draws it.
* - `shown`, `surfaceCheckedFor`: the last visibility applied and the anchor last checked.
*/
import { createEntityStore } from '../../data/entityRecords.js';
export const alprMarkers = createEntityStore();