X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/65a67281bcf5f1258512b96136920aceb64a8b23..4376afb3a37ace2236de26725af278fdd34740f7:/src/assets/js/searchpage.js?ds=sidebyside diff --git a/src/assets/js/searchpage.js b/src/assets/js/searchpage.js index c8605ec..57c7a77 100755 --- a/src/assets/js/searchpage.js +++ b/src/assets/js/searchpage.js @@ -68,6 +68,7 @@ function init_map_on_search_page(is_reverse_search, nominatim_results, request_l fillColor: '#ff7800', color: 'red', opacity: 0.75, + zIndexOffset: 100, clickable: false } ); @@ -281,11 +282,13 @@ jQuery(document).ready(function () { // ]); + console.log(search_params); + if (is_reverse_search) { var api_request_params = { lat: search_params.get('lat'), lon: search_params.get('lon'), - zoom: (search_params.get('zoom') !== null ? search_params.get('zoom') : get_config_value('Reverse_Default_Search_Zoom')), + zoom: (search_params.get('zoom') > 1 ? search_params.get('zoom') : get_config_value('Reverse_Default_Search_Zoom')), format: 'jsonv2' }; @@ -293,7 +296,7 @@ jQuery(document).ready(function () { // aPlace: aPlace, fLat: api_request_params.lat, fLon: api_request_params.lon, - iZoom: (search_params.get('zoom') !== null ? api_request_params.zoom : get_config_value('Reverse_Default_Search_Zoom')) + iZoom: (search_params.get('zoom') > 1 ? api_request_params.zoom : get_config_value('Reverse_Default_Search_Zoom')) };