map: fix cameras vanishing after opening a camera popup and zooming
Some checks failed
build-and-deploy / build (push) Has been cancelled
Some checks failed
build-and-deploy / build (push) Has been cancelled
Root cause: Leaflet 1.9.4's Map.closePopup() never nulls map._popup (only unbindPopup does), so the moveend guard 'if (map._popup) return' skipped every overlay reload forever after the first popup was ever opened. Opening one camera popup froze the marker layer: zoom out and the map kept showing the stale zoomed-in subset (or nothing) until a full page refresh. Track real popup state via popupopen/popupclose events instead, and close the popup on user zoom/drag so the moveend reload always runs after navigation; the autopan skip still protects the popup when it pans itself into view.
This commit is contained in:
parent
5cea0a5940
commit
bd4197cb6c
4 changed files with 630 additions and 6 deletions
1
.worktrees/frontend-overhaul
Submodule
1
.worktrees/frontend-overhaul
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 6f0fc8dbe3fdd5d0a8c4abb444dd751acd4f9186
|
||||
Loading…
Reference in a new issue