Increase zoom level for reverse geocode

pull/54/merge
Candid Dauth 2016-10-18 19:46:45 +03:00
rodzic e11d1294b1
commit 6b4b875bc8
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -82,7 +82,7 @@ function find(query, loadUrls) {
url: nameFinderUrl + "/reverse?format=json&addressdetails=1&polygon_geojson=1&extratags=1&namedetails=1"
+ "&lat=" + lonlat.lat
+ "&lon=" + lonlat.lon
+ "&zoom=" + (lonlat.zoom != null ? lonlat.zoom : 17),
+ "&zoom=" + (lonlat.zoom != null ? (lonlat.zoom >= 12 ? lonlat.zoom+2 : lonlat.zoom) : 17),
json: true
}).then(function(body) {
if(!body)