],
zoom: Nominatim_Config.Map_Default_Zoom
});
- if (typeof Nominatim_Config.Map_Default_Bounds !== 'undefined' && Nominatim_Config.Map_Default_Bounds) {
+ if (typeof Nominatim_Config.Map_Default_Bounds !== 'undefined'
+ && Nominatim_Config.Map_Default_Bounds) {
map.fitBounds(Nominatim_Config.Map_Default_Bounds);
}
<MapPosition />
<div id="map" use:mapAction />
-<div id="show-map-position" class="leaflet-bar btn btn-sm btn-outline-secondary"
+<button id="show-map-position" class="leaflet-bar btn btn-sm btn-outline-secondary"
on:click|stopPropagation={show_map_position_click}
->show map bounds</div>
+>show map bounds</button>
<style>
#map {