diff --git a/drb-frontend/components/MapView.tsx b/drb-frontend/components/MapView.tsx index a297e02..e951065 100644 --- a/drb-frontend/components/MapView.tsx +++ b/drb-frontend/components/MapView.tsx @@ -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);