Commit graph

1 commit

Author SHA1 Message Date
Sirius DevOps
bd4197cb6c 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.
2026-08-27 17:38:38 -04:00