<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 {
<div class="result"
class:highlight={iResNum === iHighlightNum}
data-position="{iResNum}"
- on:click|stopPropagation={handleClick}>
+ on:click|stopPropagation={handleClick}
+ on:keypress|stopPropagation={handleClick}>
<div style="float:right">
<MapIcon aPlace={aResult} />
</div>
type="text"
class="form-control form-control-sm"
placeholder="Search"
- value="{api_request_params.q || ''}"
- autofocus />
+ value="{api_request_params.q || ''}" />
</div>
<div class="col-auto">
<button type="submit" class="btn btn-primary btn-sm mx-1">Search</button>
<input type="edit"
class="form-control form-control-sm me-1"
pattern="^[NWRnwr]?[0-9]+$|.*openstreetmap.*"
- value="{api_request_params.osmtype || ''}{api_request_params.osmid || ''}{api_request_params.place_id || ''}"
- autofocus />
+ value="{api_request_params.osmtype || ''}{api_request_params.osmid || ''}{api_request_params.place_id || ''}" />
</div>
<div class="col-auto">
<button type="submit" class="btn btn-primary btn-sm">Show</button>
class="form-control form-control-sm d-inline"
placeholder="latitude"
pattern="^-?\d+(\.\d+)?$"
- autofocus
bind:value={lat}
on:change={maybeSplitLatitude} />
</div>
<div class="col-auto">
- <a id="switch-coords"
+ <button id="switch-coords"
on:click|preventDefault|stopPropagation={() => gotoCoordinates(lon, lat)}
class="btn btn-outline-secondary btn-sm"
- title="switch lat and lon"><></a>
+ title="switch lat and lon"><></button>
</div>
<div class="col-auto">
<label for="reverse-lon">lon</label>