X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/76e3136f32e35ded2caf989b0bf699de64798921..c636646759d9c541f7baf19812be18d002a8ce1d:/src/components/Map.svelte

diff --git a/src/components/Map.svelte b/src/components/Map.svelte
index 948bfe0..2d1270d 100644
--- a/src/components/Map.svelte
+++ b/src/components/Map.svelte
@@ -1,12 +1,12 @@
 
 <script>
   import * as L from 'leaflet';
-  import * as LMM from 'leaflet-minimap';
+  import 'leaflet-minimap';
   import 'leaflet/dist/leaflet.css';
   import 'leaflet-minimap/dist/Control.MiniMap.min.css';
 
   import { get } from 'svelte/store';
-  import { get_config_value } from '../lib/config_reader.js'
+  import { get_config_value } from '../lib/config_reader.js';
   import { map_store, current_result_store, current_request_latlon } from '../lib/stores.js';
   import MapPosition from '../components/MapPosition.svelte';
 
@@ -42,7 +42,7 @@
 
     const MapPositionControl = L.Control.extend({
       options: { position: 'topright' },
-      onAdd: () => { return document.getElementById('show-map-position') }
+      onAdd: () => { return document.getElementById('show-map-position'); }
     });
     map.addControl(new MapPositionControl());
 
@@ -55,7 +55,7 @@
     setMapData(get(current_result_store));
 
     return {
-      destroy: () => { map.remove() }
+      destroy: () => { map.remove(); }
     };
   }
 
@@ -79,9 +79,9 @@
     let map = get(map_store);
     if (!map) { return; }
 
-    dataLayers.forEach(function(layer) {
+    dataLayers.forEach(function (layer) {
       map.removeLayer(layer);
-    })
+    });
   }
 
   function setMapData(aFeature) {
@@ -160,7 +160,7 @@
   }
 
   current_result_store.subscribe(aFeature => {
-    setMapData(aFeature);  
+    setMapData(aFeature);
   });
 
 
