X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/d9d15620ee9dc80045c732d913c6fa6cec53ed23..cf3e8f8daa0f2f4b014b9df6c32a436248237140:/src/components/SearchSectionReverse.svelte diff --git a/src/components/SearchSectionReverse.svelte b/src/components/SearchSectionReverse.svelte index 2f53f39..70174b6 100644 --- a/src/components/SearchSectionReverse.svelte +++ b/src/components/SearchSectionReverse.svelte @@ -7,6 +7,7 @@ export let lat = ''; export let lon = ''; export let zoom = ''; + export let api_request_params = {}; function gotoCoordinates(newlat, newlon, newzoom) { if (newlat === null || newlon === null) return; @@ -36,6 +37,9 @@ } } + function set_api_param(e) { + document.querySelector('input[name=' + e.target.dataset.apiParam + ']').value = e.target.value; + } @@ -49,15 +53,14 @@ class="form-control form-control-sm d-inline" placeholder="latitude" pattern="^-?\d+(\.\d+)?$" - autofocus bind:value={lat} on:change={maybeSplitLatitude} /> - gotoCoordinates(lon, lat)} class="btn btn-outline-secondary btn-sm" - title="switch lat and lon"><> + title="switch lat and lon"><> lon @@ -82,11 +85,27 @@ {/each} + Search + + + Advanced options + + + Layer + + + + +