X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/9ad36e2ce2a63535b7071acd26bc819d989b2f17..8299637b4b6b4f1d07c6c5d55c441108b8b71d84:/src/components/SearchSection.svelte diff --git a/src/components/SearchSection.svelte b/src/components/SearchSection.svelte index a43ad75..70e8df6 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(); @@ -99,8 +100,7 @@ type="text" class="form-control form-control-sm" placeholder="Search" - value="{api_request_params.q || ''}" - autofocus /> + value="{api_request_params.q || ''}" />