mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-20 02:02:21 +00:00
fix(alpr): a double-click follows a camera with its card again
Each camera was an entity, which the default renderer's double-click followed, showing its card; a camera no longer shown, or a hidden layer, took the follow with it. As a draw-port icon it took no part in it.
This commit is contained in:
1 parent
37a1e1500b
commit
c57a8bea83
3 files changed
+67
-1
No files matched your search
@@ -70,6 +70,8 @@ export function createAlprCamerasLayer({ source, services } = {}) {
|
||||
postRenderRemove: null,
|
||||
lastAnchorSampleAt: 0,
|
||||
clickSubscription: null,
|
||||
/** The follow a double-click on a camera started, while installed. */
|
||||
stockFollow: null,
|
||||
debounceTimer: null,
|
||||
/** Snapped box of the last successful query; a view still inside it reuses its records. */
|
||||
lastQueryBox: null,
|
||||
@@ -344,6 +346,8 @@ export function createAlprCamerasLayer({ source, services } = {}) {
|
||||
state.postRenderRemove = null;
|
||||
state.clickSubscription?.();
|
||||
state.clickSubscription = null;
|
||||
state.stockFollow?.destroy();
|
||||
state.stockFollow = null;
|
||||
clearRendered();
|
||||
state.markers.dispose();
|
||||
state.credit = null;
|
||||
|
||||
Reference in new issue
Block a user