Set maximum zoom level to 19
According to http://wiki.openstreetmap.org/wiki/Zoom_levels the highest zoom level is 19.
This commit is contained in:
parent
601f3f684a
commit
dee2dcf617
@ -115,7 +115,7 @@ Class staticMapLite
|
||||
{
|
||||
// get zoom from GET paramter
|
||||
$this->zoom = $_GET['zoom'] ? intval($_GET['zoom']) : 0;
|
||||
if ($this->zoom > 18) $this->zoom = 18;
|
||||
if ($this->zoom > 19) $this->zoom = 19;
|
||||
|
||||
// get lat and lon from GET paramter
|
||||
list($this->lat, $this->lon) = explode(',', $_GET['center']);
|
||||
|
Loading…
Reference in New Issue
Block a user