mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
order of viewbox coordinates does not matter
This commit is contained in:
@@ -313,12 +313,7 @@ class Geocode
|
|||||||
if (count($aViewbox) != 4) {
|
if (count($aViewbox) != 4) {
|
||||||
userError("Bad parmater 'viewbox'. Expected 4 coordinates.");
|
userError("Bad parmater 'viewbox'. Expected 4 coordinates.");
|
||||||
}
|
}
|
||||||
$this->setViewBox(array(
|
$this->setViewBox($aViewbox);
|
||||||
$aViewbox[0],
|
|
||||||
$aViewbox[3],
|
|
||||||
$aViewbox[2],
|
|
||||||
$aViewbox[1]
|
|
||||||
));
|
|
||||||
} else {
|
} else {
|
||||||
$aRoute = $oParams->getStringList('route');
|
$aRoute = $oParams->getStringList('route');
|
||||||
$fRouteWidth = $oParams->getFloat('routewidth');
|
$fRouteWidth = $oParams->getFloat('routewidth');
|
||||||
|
|||||||
Reference in New Issue
Block a user