Mercurial > gemma
diff client/src/components/gauge/Gauges.vue @ 2713:b79f5c5404c2
client: made zoom optional in moveMap/moveToExtent
When selecting a gauge panning to the location is enough. Zoom shall remain the same.
So now, in these functions, you can specify zoom: null and no zooming will happen.
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Mon, 18 Mar 2019 17:47:16 +0100 |
parents | 0ac077897ce5 |
children | 85de42146bdb |
line wrap: on
line diff
--- a/client/src/components/gauge/Gauges.vue Mon Mar 18 17:37:24 2019 +0100 +++ b/client/src/components/gauge/Gauges.vue Mon Mar 18 17:47:16 2019 +0100 @@ -169,7 +169,7 @@ if (!this.selectedGauge) return; this.$store.commit("map/moveToExtent", { feature: this.selectedGauge, - zoom: 17, + zoom: null, preventZoomOut: true }); },