]> git.openstreetmap.org Git - nominatim-ui.git/commitdiff
for reverse search set a default zoom, 2 is usually too little
authormarc tobias <mtmail@gmx.net>
Sat, 30 Nov 2019 10:50:03 +0000 (11:50 +0100)
committermarc tobias <mtmail@gmx.net>
Sat, 30 Nov 2019 10:50:03 +0000 (11:50 +0100)
src/assets/js/searchpage.js
src/config.js

index a5394229580bdd57a00bbbc09b923d008e54e6c3..3528f19c68ccd18269999fa2bfe577d740edcccf 100755 (executable)
@@ -265,7 +265,7 @@ jQuery(document).ready(function(){
             // lon: typeof(search_params.get('lon') !== 'undefined') ? search_params.get('lon') : get_config_value('Map_Default_Lon'),
             lat: search_params.get('lat'),
             lon: search_params.get('lon'),
-            zoom: (search_params.get('zoom') !== '' ? search_params.get('zoom') : get_config_value('Map_Default_Zoom')),
+            zoom: (search_params.get('zoom') !== '' ? search_params.get('zoom') : get_config_value('Reverse_Default_Search_Zoom')),
             format: 'jsonv2'
         }
 
@@ -273,7 +273,7 @@ jQuery(document).ready(function(){
             // aPlace: aPlace,
             fLat: api_request_params.lat,
             fLon: api_request_params.lon,
-            iZoom: (search_params.get('zoom') !== '' ? api_request_params.zoom : undefined)
+            iZoom: (search_params.get('zoom') !== '' ? api_request_params.zoom : get_config_value('Reverse_Default_Search_Zoom'))
         };
 
 
index 2d7bc68e406775a1f054f863af2aa4f6d1839c99..e1272bf16f37e09488fee03a8d9eaf42f50b1111 100644 (file)
@@ -1,7 +1,9 @@
 var Nominatim_Config = {
-    "Nominatim_API_Endpoint": 'http://localhost:8089/nominatim/',
+    // "Nominatim_API_Endpoint": 'http://localhost:8089/nominatim/',
+    "Nominatim_API_Endpoint": 'https://nominatim.openstreetmap.org/',
     "Images_Base_Url": 'http://localhost:8089/',
     "Search_AreaPolygons": 1,
+    "Reverse_Default_Search_Zoom": 18,
     "Map_Default_Lat": 20.0,
     "Map_Default_Lon": 0.0,
     "Map_Default_Zoom": 2,