From dee2dcf6172b8f0ff8c60a22d7c38f21cfd91bc1 Mon Sep 17 00:00:00 2001 From: Ezra Buehler Date: Sun, 5 Jun 2016 15:29:38 +0200 Subject: [PATCH] Set maximum zoom level to 19 According to http://wiki.openstreetmap.org/wiki/Zoom_levels the highest zoom level is 19. --- staticmap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/staticmap.php b/staticmap.php index a9855e5..1219335 100644 --- a/staticmap.php +++ b/staticmap.php @@ -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']);