mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-28 14:22:19 +03:00
commit
7f72c7b5fc
@ -225,14 +225,14 @@ class Geocode
|
|||||||
$aViewbox = $oParams->getStringList('viewboxlbrt');
|
$aViewbox = $oParams->getStringList('viewboxlbrt');
|
||||||
if ($aViewbox) {
|
if ($aViewbox) {
|
||||||
if (count($aViewbox) != 4) {
|
if (count($aViewbox) != 4) {
|
||||||
userError("Bad parmater 'viewboxlbrt'. Expected 4 coordinates.");
|
userError("Bad parameter 'viewboxlbrt'. Expected 4 coordinates.");
|
||||||
}
|
}
|
||||||
$this->setViewbox($aViewbox);
|
$this->setViewbox($aViewbox);
|
||||||
} else {
|
} else {
|
||||||
$aViewbox = $oParams->getStringList('viewbox');
|
$aViewbox = $oParams->getStringList('viewbox');
|
||||||
if ($aViewbox) {
|
if ($aViewbox) {
|
||||||
if (count($aViewbox) != 4) {
|
if (count($aViewbox) != 4) {
|
||||||
userError("Bad parmater 'viewbox'. Expected 4 coordinates.");
|
userError("Bad parameter 'viewbox'. Expected 4 coordinates.");
|
||||||
}
|
}
|
||||||
$this->setViewBox($aViewbox);
|
$this->setViewBox($aViewbox);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user