# HG changeset patch # User Thomas Junk # Date 1549962241 -3600 # Node ID ecb0ad836aa00da33c238582638cf85f8ad36b70 # Parent 1e99a4226f3dd5a74703874bead5a50ed8eabb4a linting diff -r 1e99a4226f3d -r ecb0ad836aa0 client/src/components/Maplayer.vue --- 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", diff -r 1e99a4226f3d -r ecb0ad836aa0 client/src/components/Zoom.vue --- 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 */ 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",