X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/01eef0904e32e0487775d79a321ee890e0ec3504..2a34127a122a0d415a1cabb8de8e80a91b3dc017:/src/components/Map.svelte

diff --git a/src/components/Map.svelte b/src/components/Map.svelte
index 5426864..dd2a1ae 100644
--- a/src/components/Map.svelte
+++ b/src/components/Map.svelte
@@ -28,6 +28,10 @@
       ],
       zoom: Nominatim_Config.Map_Default_Zoom
     });
+    if (typeof Nominatim_Config.Map_Default_Bounds !== 'undefined'
+      && Nominatim_Config.Map_Default_Bounds) {
+      map.fitBounds(Nominatim_Config.Map_Default_Bounds);
+    }
 
     if (attribution && attribution.length) {
       L.control.attribution({ prefix: '<a href="https://leafletjs.com/">Leaflet</a>' }).addTo(map);
