X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/6e68f11776a8f6f5a62b989f13ebf7438ef32476..HEAD:/src/pages/ReversePage.svelte diff --git a/src/pages/ReversePage.svelte b/src/pages/ReversePage.svelte index b43750f..fe65b64 100644 --- a/src/pages/ReversePage.svelte +++ b/src/pages/ReversePage.svelte @@ -20,14 +20,15 @@ zoom: (search_params.get('zoom') > 1 ? Number(search_params.get('zoom')) : Number(Nominatim_Config.Reverse_Default_Search_Zoom)), + layer: search_params.get('layer'), format: 'jsonv2' }; - if (api_request_params.lat || api_request_params.lat) { + if (api_request_params.lat && api_request_params.lon) { fetch_from_api('reverse', api_request_params, function (data) { + position_marker = [api_request_params.lat, api_request_params.lon]; if (data && !data.error) { - position_marker = [api_request_params.lat, api_request_params.lon]; results_store.set([data]); } else { results_store.set([]); @@ -53,7 +54,10 @@
- +