X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/0ba857ac4c4edb839832b63010ca8550da701da5..e7983651e9433cf93cd2e698afefd94360dd94ce:/src/pages/ReversePage.svelte

diff --git a/src/pages/ReversePage.svelte b/src/pages/ReversePage.svelte
index 9f3bacb..987f206 100644
--- a/src/pages/ReversePage.svelte
+++ b/src/pages/ReversePage.svelte
@@ -1,6 +1,5 @@
 <script>
   import { page, results_store } from '../lib/stores.js';
-  import { get_config_value } from '../lib/config_reader.js';
   import { fetch_from_api, update_html_title } from '../lib/api_utils.js';
 
   import Header from '../components/Header.svelte';
@@ -20,15 +19,16 @@
       lon: search_params.get('lon'),
       zoom: (search_params.get('zoom') > 1
         ? Number(search_params.get('zoom'))
-        : Number(get_config_value('Reverse_Default_Search_Zoom'))),
+        : Number(Nominatim_Config.Reverse_Default_Search_Zoom)),
+      layer: search_params.get('layer'),
       format: 'jsonv2'
     };
 
     if (api_request_params.lat || api_request_params.lat) {
 
       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([]);
@@ -54,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">
