X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/da196b93dcd704e2150e691e2dc588952015b50d..cb2c96641bcc89f9bf427f9a13931f98d6dec3bc:/src/components/Map.svelte

diff --git a/src/components/Map.svelte b/src/components/Map.svelte
index 763495d..5426864 100644
--- a/src/components/Map.svelte
+++ b/src/components/Map.svelte
@@ -17,8 +17,9 @@
 
   function createMap(container) {
     const attribution = Nominatim_Config.Map_Tile_Attribution;
+
     let map = new L.map(container, {
-      attributionControl: (attribution && attribution.length),
+      attributionControl: false,
       scrollWheelZoom: true, // !L.Browser.touch,
       touchZoom: false,
       center: [
@@ -28,6 +29,10 @@
       zoom: Nominatim_Config.Map_Default_Zoom
     });
 
+    if (attribution && attribution.length) {
+      L.control.attribution({ prefix: '<a href="https://leafletjs.com/">Leaflet</a>' }).addTo(map);
+    }
+
     L.tileLayer(Nominatim_Config.Map_Tile_URL, {
       attribution: attribution
     }).addTo(map);
