diff --git a/web/src/storeFunctions.ts b/web/src/storeFunctions.ts index 95e0339d..db6eaef0 100644 --- a/web/src/storeFunctions.ts +++ b/web/src/storeFunctions.ts @@ -101,8 +101,7 @@ export function clearMap() { zoom = currentProject.value.default_map_zoom; } const map = getMap(); - map.setCenter(center); - map.setZoom(zoom); + map.jumpTo({ center, zoom }); } export function loadDatasets() {