Mercurial > gemma
comparison client/src/components/gauge/Gauges.vue @ 3151:47453337c698
client: gauges: set zoom level after selecting a gauge
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Fri, 03 May 2019 13:36:31 +0200 |
parents | b6cc4838d2c0 |
children | 18a639e1f7f4 |
comparison
equal
deleted
inserted
replaced
3150:38d9edce3331 | 3151:47453337c698 |
---|---|
168 selectedGaugeISRS(gauge) { | 168 selectedGaugeISRS(gauge) { |
169 if (gauge) { | 169 if (gauge) { |
170 let coordinates = this.selectedGauge.geometry.coordinates; | 170 let coordinates = this.selectedGauge.geometry.coordinates; |
171 this.$store.dispatch("map/moveMap", { | 171 this.$store.dispatch("map/moveMap", { |
172 coordinates, | 172 coordinates, |
173 zoom: null, | 173 zoom: 15, |
174 preventZoomOut: true | 174 preventZoomOut: true |
175 }); | 175 }); |
176 } else { | 176 } else { |
177 this.$store.commit("application/paneSetup", "DEFAULT"); | 177 this.$store.commit("application/paneSetup", "DEFAULT"); |
178 } | 178 } |