From 7c24c4b030625d712730a1797270d23706ac99a2 Mon Sep 17 00:00:00 2001 From: NatureFreshMilk Date: Thu, 19 Sep 2019 07:33:14 +0200 Subject: [PATCH] happy jshint --- static/js/LayerManager.js | 1 - static/js/components/LayerSelector.js | 2 +- static/js/map/TopRightControl.js | 4 ++-- static/js/map/overlays/AbstractGeoJsonOverlay.js | 1 - 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/static/js/LayerManager.js b/static/js/LayerManager.js index cef790c..2053bce 100644 --- a/static/js/LayerManager.js +++ b/static/js/LayerManager.js @@ -1,4 +1,3 @@ -import RealtimeTileLayer from './map/RealtimeTileLayer.js'; class LayerManager { diff --git a/static/js/components/LayerSelector.js b/static/js/components/LayerSelector.js index 8c06bec..98a1de6 100644 --- a/static/js/components/LayerSelector.js +++ b/static/js/components/LayerSelector.js @@ -15,7 +15,7 @@ export default { "option", { value: layer.id, selected: layer.id == LayerManager.getCurrentLayer().id }, layer.name - )) + )); return m("select", { class: "form-control", onchange: onchange },layers); } diff --git a/static/js/map/TopRightControl.js b/static/js/map/TopRightControl.js index 3eea4ae..2750560 100644 --- a/static/js/map/TopRightControl.js +++ b/static/js/map/TopRightControl.js @@ -9,9 +9,9 @@ const Component = { return m("div", [ cfg.enablesearch ? m(SearchInput) : null, m(LayerSelector) - ]) + ]); } -} +}; export default L.Control.extend({ diff --git a/static/js/map/overlays/AbstractGeoJsonOverlay.js b/static/js/map/overlays/AbstractGeoJsonOverlay.js index 53df144..0ebd5fe 100644 --- a/static/js/map/overlays/AbstractGeoJsonOverlay.js +++ b/static/js/map/overlays/AbstractGeoJsonOverlay.js @@ -1,5 +1,4 @@ import debounce from '../../util/debounce.js'; -import wsChannel from '../../WebSocketChannel.js'; import layerMgr from '../../LayerManager.js'; import { getMapObjects } from '../../api.js';