diff client/src/components/fairway/Profiles.vue @ 2136:3138d60dd1a6

moveToExtent substitutes moveMap where easy doable
author Thomas Junk <thomas.junk@intevation.de>
date Wed, 06 Feb 2019 15:53:24 +0100
parents f2d24dceecc7
children a08e0f532304
line wrap: on
line diff
--- a/client/src/components/fairway/Profiles.vue	Wed Feb 06 15:20:58 2019 +0100
+++ b/client/src/components/fairway/Profiles.vue	Wed Feb 06 15:53:24 2019 +0100
@@ -460,8 +460,8 @@
         bn => bn.properties.name === this.selectedBottleneck
       );
       if (!bottleneck) return;
-      this.$store.commit("map/moveMap", {
-        coordinates: bottleneck.geometry.coordinates,
+      this.$store.commit("map/moveToExtent", {
+        feature: bottleneck,
         zoom: 17,
         preventZoomOut: true
       });