mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-12-25 22:12:45 +03:00
don't enlarge viewbox when bounded is requested
This commit is contained in:
parent
9ac57c92ee
commit
3eb21a7694
@ -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)";
|
||||
|
Loading…
Reference in New Issue
Block a user