map: fix cameras vanishing after opening a camera popup and zooming
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:
Sirius DevOps 2026-08-27 17:38:38 -04:00
commit bd4197cb6c
4 changed files with 630 additions and 6 deletions

@ -0,0 +1 @@
Subproject commit 6f0fc8dbe3fdd5d0a8c4abb444dd751acd4f9186