From 60f7885a035b4140c8c3e655db6963b0b09f40f2 Mon Sep 17 00:00:00 2001 From: mtmail Date: Thu, 21 Aug 2025 02:26:49 +0200 Subject: [PATCH] add map scale (#290) --- CHANGES.md | 3 +++ src/components/Map.svelte | 2 ++ 2 files changed, 5 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index 21f3a82..731a674 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,6 @@ +* unlreleased + * Map: add scale in bottom left corner + * version 3.7.1 - 2025-05-27 * Remove .php from endpoint URLs. Nominatim no longer uses them * Status page: when endpoint is a callback, then call it diff --git a/src/components/Map.svelte b/src/components/Map.svelte index 106acc1..70ffd3a 100644 --- a/src/components/Map.svelte +++ b/src/components/Map.svelte @@ -39,6 +39,8 @@ L.control.attribution({ prefix: 'Leaflet' }).addTo(map); } + L.control.scale().addTo(map); + L.tileLayer(Nominatim_Config.Map_Tile_URL, { attribution: attribution }).addTo(map); -- 2.39.5