Live wall: saved views in the URL hash, per-viewer memory, kiosk mode (#234) #265

Merged
logan merged 2 commits from feat/234-saved-views into main 2026-10-05 03:03:26 -04:00
Showing only changes of commit b6055019fc - Show all commits
+4
View File
@@ -1274,6 +1274,10 @@ export default function MapView({
mapInstance.on("overlayremove", onRemove);
mapInstance.on("baselayerchange", onBase);
mapInstance.on("moveend", onMove);
// Report the starting state once, so the URL carries the viewport even if
// the viewer never pans: a copied link must not fall back to the other
// browser's remembered view.
emit();
return () => {
clearTimeout(timer);
mapInstance.off("overlayadd", onAdd);