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:
Ezra Buehler 2016-06-05 15:29:38 +02:00
parent 601f3f684a
commit dee2dcf617
1 changed files with 1 additions and 1 deletions

View File

@ -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']);