]> git.openstreetmap.org Git - nominatim.git/commitdiff
Revert "restrict viewbox size"
authorSarah Hoffmann <lonvia@denofr.de>
Mon, 29 Jun 2015 20:46:57 +0000 (22:46 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Mon, 29 Jun 2015 20:46:57 +0000 (22:46 +0200)
This reverts commit 5be0f828c1cdf9f69aefdcc158fc06f2f5a67cfc.

Conflicts:
lib/Geocode.php

lib/Geocode.php

index c1fae0bbec399305b1efcbccc02b41e3e9f43163..38f7614233ea3313c3e67a84aa550fa09afc6f25 100644 (file)
                        $this->bBoundedSearch = (bool)$bBoundedSearch;
                }
 
-               function setViewBox($sLeft, $sBottom, $sRight, $sTop)
+               function setViewBox($fLeft, $fBottom, $fRight, $fTop)
                {
-                       $fLeft = (float)$sLeft;
-                       $fRight = (float)$sRight;
-                       $fTop = (float)$sTop;
-                       $fBottom = (float)$sBottom;
-                       if ($fRight > $fLeft && $fBottom < $fTop
-                           && ($fRight - $fLeft) < 2 && ($fTop - $fBottom) < 2)
-                               $this->aViewBox = array($fLeft, $fBottom, $fRight, $fTop);
+                       $this->aViewBox = array($fLeft, $fBottom, $fRight, $fTop);
                }
 
                function getViewBoxString()