X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/f9ae81bddd61b9749df987e6c8ee9263ae464705..9c4975070c1d72fd10c1dec2038f840df0026b96:/src/components/SearchSection.svelte diff --git a/src/components/SearchSection.svelte b/src/components/SearchSection.svelte index 6bf7bca..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(); @@ -69,7 +70,7 @@ } function set_dedupe(e) { - document.querySelector('input[name=dedupe]').value = e.target.checked ? 1 : ''; + document.querySelector('input[name=dedupe]').value = e.target.checked ? 1 : 0; } function set_api_param(e) { @@ -79,10 +80,14 @@
@@ -99,14 +104,21 @@