From 6b4b875bc871921a4d96428e7800de839f0f00c1 Mon Sep 17 00:00:00 2001 From: Candid Dauth Date: Tue, 18 Oct 2016 19:46:45 +0300 Subject: [PATCH] Increase zoom level for reverse geocode --- server/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/search.js b/server/search.js index 4a416796..f67720c7 100644 --- a/server/search.js +++ b/server/search.js @@ -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)