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

diff --git a/src/components/Map.svelte b/src/components/Map.svelte
index 5426864..1ef199c 100644
--- a/src/components/Map.svelte
+++ b/src/components/Map.svelte
@@ -28,6 +28,9 @@
       ],
       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);
