Mercurial > gemma
comparison client/src/components/Bottlenecks.vue @ 3044:c71373594719
client: map: prepared store to hold multiple map objects
This will be necessary to sync maps, toggle layers per map, etc. Therefore the methods to move the map
(moveToExtent, etc.) became actions instead of mutations.
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Sat, 13 Apr 2019 16:02:06 +0200 |
parents | f6cd4ebd8562 |
children | 1ef2f4179d30 |
comparison
equal
deleted
inserted
replaced
3043:de75404cb5fc | 3044:c71373594719 |
---|---|
144 ) | 144 ) |
145 .then(() => { | 145 .then(() => { |
146 this.$store.commit("bottlenecks/selectedSurvey", survey); | 146 this.$store.commit("bottlenecks/selectedSurvey", survey); |
147 }) | 147 }) |
148 .then(() => { | 148 .then(() => { |
149 this.$store.commit("map/moveToExtent", { | 149 this.$store.dispatch("map/moveToExtent", { |
150 feature: bottleneck, | 150 feature: bottleneck, |
151 zoom: 17, | 151 zoom: 17, |
152 preventZoomOut: true | 152 preventZoomOut: true |
153 }); | 153 }); |
154 }); | 154 }); |
161 ) | 161 ) |
162 .then(() => { | 162 .then(() => { |
163 this.$store.commit("bottlenecks/setFirstSurveySelected"); | 163 this.$store.commit("bottlenecks/setFirstSurveySelected"); |
164 }) | 164 }) |
165 .then(() => { | 165 .then(() => { |
166 this.$store.commit("map/moveToExtent", { | 166 this.$store.dispatch("map/moveToExtent", { |
167 feature: bottleneck, | 167 feature: bottleneck, |
168 zoom: 17, | 168 zoom: 17, |
169 preventZoomOut: true | 169 preventZoomOut: true |
170 }); | 170 }); |
171 }); | 171 }); |