diff --git a/src/store/plugins/geolocation-management.plugin.js b/src/store/plugins/geolocation-management.plugin.js index a175b7b9c..1614cf166 100644 --- a/src/store/plugins/geolocation-management.plugin.js +++ b/src/store/plugins/geolocation-management.plugin.js @@ -22,6 +22,14 @@ function setCenterIfInBounds(store, center) { center: center, ...dispatcher, }) + + if (firstTimeActivatingGeolocation) { + firstTimeActivatingGeolocation = !firstTimeActivatingGeolocation + store.dispatch('setZoom', { + zoom: store.state.position.projection.get1_25000ZoomLevel(), + ...dispatcher, + }) + } } } else { log.warn(`current geolocation is out of bounds: ${JSON.stringify(center)}`)