X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/39f28a36ce98b7fb0c1bd7203084c291cd651c59..93117a14df2d0aee9109d51edd7d6dad834d8ec4:/src/assets/js/searchpage.js?ds=sidebyside diff --git a/src/assets/js/searchpage.js b/src/assets/js/searchpage.js index d909533..5455f8e 100755 --- a/src/assets/js/searchpage.js +++ b/src/assets/js/searchpage.js @@ -117,7 +117,7 @@ function init_map_on_search_page(is_reverse_search, nominatim_results, request_l var container = L.DomUtil.create('div', 'my-custom-control'); $(container).text('show map bounds') - .addClass('leaflet-bar btn btn-sm btn-default') + .addClass('leaflet-bar btn btn-sm btn-outline-secondary') .on('click', function (e) { e.preventDefault(); e.stopPropagation(); @@ -395,7 +395,7 @@ jQuery(document).ready(function () { state: search_params.get('state'), country: search_params.get('country'), postalcode: search_params.get('postalcode'), - polygon_geojson: search_params.get('polygon_geojson') ? 1 : 0, + polygon_geojson: get_config_value('Search_AreaPolygons', false) ? 1 : 0, viewbox: search_params.get('viewbox'), exclude_place_ids: search_params.get('exclude_place_ids'), format: 'jsonv2' @@ -404,7 +404,7 @@ jQuery(document).ready(function () { context = { sQuery: api_request_params.q, sViewBox: search_params.get('viewbox'), - env: Nominatim_Config + env: {} }; if (api_request_params.street || api_request_params.city || api_request_params.county