]> git.openstreetmap.org Git - nominatim-ui.git/blobdiff - src/components/Map.svelte
when clicking on -reverse- tab then round coordinates first
[nominatim-ui.git] / src / components / Map.svelte
index 1ef199ce63a12698caed90ef71a3935c9726f50e..37166f603ba9bda88ee93d79bfe84220898af293 100644 (file)
@@ -28,7 +28,8 @@
       ],
       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 {