changeset 848:22f7d33eee65

Make eslint happy again.
author Sascha Wilde <wilde@intevation.de>
date Fri, 28 Sep 2018 12:26:46 +0200
parents 82765aa6de53
children d63e60b868bf
files client/src/map/Maplayer.vue
diffstat 1 files changed, 12 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/map/Maplayer.vue	Fri Sep 28 12:17:35 2018 +0200
+++ b/client/src/map/Maplayer.vue	Fri Sep 28 12:26:46 2018 +0200
@@ -28,7 +28,6 @@
 import { getLength } from "ol/sphere.js";
 import { Stroke, Style, Fill } from "ol/style.js";
 
-
 import distance from "@turf/distance";
 import {
   lineString as turfLineString,
@@ -40,6 +39,8 @@
 
 const DEMODATA = 2.5;
 
+/* for the sake of debugging */
+/* eslint-disable no-console */
 export default {
   name: "maplayer",
   props: ["drawMode", "lat", "long", "zoom", "split"],
@@ -285,7 +286,7 @@
       console.log(datestr);
       var wmsSrc = this.getLayerByName("Bottleneck isolines").data.getSource();
       // TODOISO check if this works
-      wmsSrc.updateParams({cql_filter: "date_info = '" + datestr + "'"});
+      wmsSrc.updateParams({ cql_filter: "date_info = '" + datestr + "'" });
     }
   },
   watch: {
@@ -318,7 +319,6 @@
     });
     this.$store.commit("mapstore/setOpenLayersMap", map);
 
-
     // TODO make display of layers more dynamic, e.g. from a list
 
     // loading the full WFS layer, by not setting the loader function
@@ -442,15 +442,15 @@
     // TODOSTYLE add backend request (like search for 'HTTP')
     // and use result to construct a new style like
     var newstyle = new Style({
-            stroke: new Stroke({
-              color: "rgba(230, 30, 10, .8)",
-              width: 4
-            }),
-            fill: new Fill({
-              color: "rgba(230, 30, 10, .3)"
-            })
-          })
-    layer.data.setStyle(newstyle)
+      stroke: new Stroke({
+        color: "rgba(230, 30, 10, .8)",
+        width: 4
+      }),
+      fill: new Fill({
+        color: "rgba(230, 30, 10, .3)"
+      })
+    });
+    layer.data.setStyle(newstyle);
 
     // so none is shown
     // this.updateBottleneckFilter("1999-10-01");