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';