allow ?fullscreen=true for embedded map support

This commit is contained in:
Will Freeman
2025-03-28 13:41:21 -06:00
parent d748908cfd
commit dafd8bb325
3 changed files with 59 additions and 47 deletions
+6 -1
View File
@@ -140,8 +140,13 @@ function updateURL() {
return;
}
const currentRoute = router.currentRoute.value;
const newHash = `#map=${zoom.value}/${center.value.lat.toFixed(6)}/${center.value.lng.toFixed(6)}`;
router.replace({
hash: `#map=${zoom.value}/${center.value.lat.toFixed(6)}/${center.value.lng.toFixed(6)}`
path: currentRoute.path,
query: currentRoute.query,
hash: newHash,
});
}