Live wall: saved views in the URL hash, per-viewer memory, kiosk mode (#234) #265
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user