From: marc tobias Date: Sat, 30 Nov 2019 14:20:10 +0000 (+0100) Subject: leaflet 1.3 => 1.6 X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/commitdiff_plain/7af2cb3e824b96e66e380ffefc0df4f779562f56?hp=aabb32c8a1e90534f3ee61e428e668280587dfd9 leaflet 1.3 => 1.6 --- diff --git a/package.json b/package.json index 138e709..9c4ac69 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "grunt": "^1.0.2", "handlebars": "4.5.3", "jquery": "3.4.1", - "leaflet": "1.3.1", + "leaflet": "1.6.0", "leaflet-minimap": "3.6.1" } } diff --git a/src/assets/js/searchpage.js b/src/assets/js/searchpage.js index 44e7a79..a0a8a17 100755 --- a/src/assets/js/searchpage.js +++ b/src/assets/js/searchpage.js @@ -269,7 +269,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('Reverse_Default_Search_Zoom')), + zoom: (search_params.get('zoom') !== null ? search_params.get('zoom') : get_config_value('Reverse_Default_Search_Zoom')), format: 'jsonv2' } @@ -277,7 +277,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 : get_config_value('Reverse_Default_Search_Zoom')) + iZoom: (search_params.get('zoom') !== null ? api_request_params.zoom : get_config_value('Reverse_Default_Search_Zoom')) }; diff --git a/yarn.lock b/yarn.lock index b659e8d..944a808 100644 --- a/yarn.lock +++ b/yarn.lock @@ -392,10 +392,10 @@ leaflet-minimap@3.6.1: resolved "https://registry.yarnpkg.com/leaflet-minimap/-/leaflet-minimap-3.6.1.tgz#2a43ff3b3d947a45a0acf4bdefc96505b673a6c6" integrity sha1-KkP/Oz2UekWgrPS978llBbZzpsY= -leaflet@1.3.1: - version "1.3.1" - resolved "https://registry.yarnpkg.com/leaflet/-/leaflet-1.3.1.tgz#86f336d2fb0e2d0ff446677049a5dc34cf0ea60e" - integrity sha512-adQOIzh+bfdridLM1xIgJ9VnJbAUY3wqs/ueF+ITla+PLQ1z47USdBKUf+iD9FuUA8RtlT6j6hZBfZoA6mW+XQ== +leaflet@1.6.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/leaflet/-/leaflet-1.6.0.tgz#aecbb044b949ec29469eeb31c77a88e2f448f308" + integrity sha512-CPkhyqWUKZKFJ6K8umN5/D2wrJ2+/8UIpXppY7QDnUZW5bZL5+SEI2J7GBpwh4LIupOKqbNSQXgqmrEJopHVNQ== load-json-file@^1.0.0: version "1.1.0"