]> git.openstreetmap.org Git - nominatim-ui.git/blobdiff - src/pages/ReversePage.svelte
Reverse page: update lat/lon test
[nominatim-ui.git] / src / pages / ReversePage.svelte
index 7d1fe609075d9809e5f4add0c1a5fb9a1a534b37..fe65b643f70282a3224a483ca19a912c6c0c4afb 100644 (file)
       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];
 </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">