X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/28810e6ce0411870a8fff3ffc00d5abefe556390..749091bf3a0ac9c1f7417b7b896aa4081fc8d5c8:/lib/Geocode.php diff --git a/lib/Geocode.php b/lib/Geocode.php index a7987d24..fc2d6c65 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -313,12 +313,7 @@ class Geocode if (count($aViewbox) != 4) { userError("Bad parmater 'viewbox'. Expected 4 coordinates."); } - $this->setViewBox(array( - $aViewbox[0], - $aViewbox[3], - $aViewbox[2], - $aViewbox[1] - )); + $this->setViewBox($aViewbox); } else { $aRoute = $oParams->getStringList('route'); $fRouteWidth = $oParams->getFloat('routewidth');