From 3d1caa5a6ce8b5f4886f2941d25df6fc796de662 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Mon, 29 Jun 2015 22:46:57 +0200 Subject: [PATCH] Revert "restrict viewbox size" This reverts commit 5be0f828c1cdf9f69aefdcc158fc06f2f5a67cfc. Conflicts: lib/Geocode.php --- lib/Geocode.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/lib/Geocode.php b/lib/Geocode.php index c1fae0bb..38f76142 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -148,15 +148,9 @@ $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() -- 2.39.5