]> git.openstreetmap.org Git - nominatim-ui.git/blobdiff - src/components/Map.svelte
replace httpbin with beeceptor for mocking HTTP error codes
[nominatim-ui.git] / src / components / Map.svelte
index 54268647af9ff2ae297922e2fdebdaff3768dbe0..dd2a1ae0017e8cb507dea2d7efed2f888146cef3 100644 (file)
       ],
       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);