diff client/src/components/Maplayer.vue @ 2190:ecb0ad836aa0

linting
author Thomas Junk <thomas.junk@intevation.de>
date Tue, 12 Feb 2019 10:04:01 +0100
parents 005da2c21b11
children 4eeaba4ef573
line wrap: on
line diff
--- a/client/src/components/Maplayer.vue	Tue Feb 12 09:53:03 2019 +0100
+++ b/client/src/components/Maplayer.vue	Tue Feb 12 10:04:01 2019 +0100
@@ -38,6 +38,7 @@
 import { WFS, GeoJSON } from "ol/format.js";
 import { equalTo } from "ol/format/filter.js";
 import { Stroke, Style, Fill } from "ol/style.js";
+import { displayError } from "@/lib/errors.js";
 
 /* for the sake of debugging */
 /* eslint-disable no-console */
@@ -186,22 +187,25 @@
         "Content-type": "text/xml; charset=UTF-8"
       }
     })
-    .then((response) => {
-      this.$store.commit("map/moveToBoundingBox", {
-        boundingBox: [
-          response.data.extent.x1,
-          response.data.extent.y1,
-          response.data.extent.x2,
-          response.data.extent.y2
-        ], zoom: 17, preventZoomOut:true});
-    })
-    .catch(error => {
-      const { status, data } = error.response;
-      displayError({
-        title: this.$gettext("Backend Error"),
-        message: `${status}: ${data.message || data}`
+      .then(response => {
+        this.$store.commit("map/moveToBoundingBox", {
+          boundingBox: [
+            response.data.extent.x1,
+            response.data.extent.y1,
+            response.data.extent.x2,
+            response.data.extent.y2
+          ],
+          zoom: 17,
+          preventZoomOut: true
+        });
+      })
+      .catch(error => {
+        const { status, data } = error.response;
+        displayError({
+          title: this.$gettext("Backend Error"),
+          message: `${status}: ${data.message || data}`
+        });
       });
-    });
 
     // TODO make display of layers more dynamic, e.g. from a list
 
@@ -209,6 +213,7 @@
     ["1", "2", "3"].forEach(los => {
       // loading the full WFS layer without bboxStrategy
       var source = this.getVSourceByName("Fairway Dimensions LOS " + los);
+      /*eslint-disable no-unused-vars */
       var loader = function(extent, resolution, projection) {
         var featureRequest = new WFS().writeGetFeature({
           srsName: "EPSG:3857",