changeset 2190:ecb0ad836aa0

linting
author Thomas Junk <thomas.junk@intevation.de>
date Tue, 12 Feb 2019 10:04:01 +0100
parents 1e99a4226f3d
children 4b9496752d89
files client/src/components/Maplayer.vue client/src/components/Zoom.vue
diffstat 2 files changed, 21 insertions(+), 16 deletions(-) [+]
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",
--- a/client/src/components/Zoom.vue	Tue Feb 12 09:53:03 2019 +0100
+++ b/client/src/components/Zoom.vue	Tue Feb 12 10:04:01 2019 +0100
@@ -55,7 +55,7 @@
  * Thomas Junk <thomas.junk@intevation.de>
  */
 import { mapState } from "vuex";
-import { Tile as TileLayer, Vector as VectorLayer } from "ol/layer.js";
+import { Vector as VectorLayer } from "ol/layer.js";
 
 export default {
   name: "zoom",