From 3eb21a769482b271af6a2fb04da9ba4f6ae784f3 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Thu, 1 May 2014 14:20:23 +0200 Subject: [PATCH] don't enlarge viewbox when bounded is requested --- lib/Geocode.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Geocode.php b/lib/Geocode.php index 7b20838d..1604d43f 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -1205,7 +1205,8 @@ // If excluded place IDs are given, it is fair to assume that // there have been results in the small box, so no further // expansion in that case. - if (!sizeof($aPlaceIDs) && !sizeof($this->aExcludePlaceIDs)) + // Also don't expand if bounded results were requested. + if (!sizeof($aPlaceIDs) && !sizeof($this->aExcludePlaceIDs) && !$this->bBoundedSearch) { $sSQL = "select place_id from place_classtype_".$aSearch['sClass']."_".$aSearch['sType']." ct"; if ($sCountryCodesSQL) $sSQL .= " join placex using (place_id)";