fix viewbox issues

This commit is contained in:
Brian Quinion
2013-08-30 13:04:33 +01:00
parent eb793ae26e
commit cdd129de70
3 changed files with 13 additions and 5 deletions

View File

@@ -133,6 +133,12 @@
$this->aViewBox = array($fLeft, $fBottom, $fRight, $fTop);
}
function getViewBoxString()
{
if (!$this->aViewBox) return null;
return $this->aViewBox[0].','.$this->aViewBox[3].','.$this->aViewBox[2].','.$this->aViewBox[1];
}
function setRoute($aRoutePoints)
{
$this->aRoutePoints = $aRoutePoints;