X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/2f8b33afce5cd34432db91fbd4d6950bd38359a3..009e6267f7b7cf46be7958327d83e4cf261334b0:/src/components/SearchSection.svelte diff --git a/src/components/SearchSection.svelte b/src/components/SearchSection.svelte index e50bbdf..c1d3c18 100644 --- a/src/components/SearchSection.svelte +++ b/src/components/SearchSection.svelte @@ -7,8 +7,9 @@ export let bStructuredSearch = false; export let api_request_params = {}; let sViewBox; - let lat; - let lon; + // lat,lon are later set in update_reverse_link() + let lat; // eslint-disable-line no-unused-vars + let lon; // eslint-disable-line no-unused-vars function map_viewbox_as_string(map) { var bounds = map.getBounds(); @@ -79,10 +80,14 @@
@@ -95,19 +100,27 @@ type="text" class="form-control form-control-sm" placeholder="Search" - value="{api_request_params.q || ''}" - autofocus /> + value="{api_request_params.q || ''}" />