X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/1e4c08dcf8369732a0f3da72ed4ef1a99c9618dd..9c4975070c1d72fd10c1dec2038f840df0026b96:/src/pages/ReversePage.svelte

diff --git a/src/pages/ReversePage.svelte b/src/pages/ReversePage.svelte
index 7d1fe60..fe65b64 100644
--- a/src/pages/ReversePage.svelte
+++ b/src/pages/ReversePage.svelte
@@ -20,10 +20,11 @@
       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];
@@ -53,7 +54,10 @@
 </script>
 
 <Header>
-  <SearchSectionReverse {...api_request_params} />
+  <SearchSectionReverse lat={api_request_params.lat}
+                        lon={api_request_params.lon}
+                        zoom={api_request_params.zoom}
+                        api_request_params={api_request_params} />
 </Header>
 
 <div id="content">
