From aca007ee940fa56521d76e7f8ef2f8de89fb4b03 Mon Sep 17 00:00:00 2001 From: James Lyne Date: Tue, 7 Sep 2021 23:20:35 +0100 Subject: [PATCH] Reset zoom level when switching worlds --- src/components/Map.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/Map.vue b/src/components/Map.vue index bc74844..fae097e 100644 --- a/src/components/Map.vue +++ b/src/components/Map.vue @@ -198,9 +198,7 @@ export default defineComponent({ location = newValue.center; } - if(!oldValue) { - this.scheduledZoom = this.scheduledZoom || store.state.configuration.defaultZoom; - } + this.scheduledZoom = this.scheduledZoom || store.state.configuration.defaultZoom; //Set pan location for when the projection changes this.scheduledPan = location;