From 8d11733a7b2f3636d8eb6dbb527c231b25d4694a Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Mon, 2 Jan 2017 12:38:22 -0800 Subject: [PATCH] set minzoom=2 to avoid missing tiles --- p3k/geo/StaticMap.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/p3k/geo/StaticMap.php b/p3k/geo/StaticMap.php index a1c0806..7a63226 100644 --- a/p3k/geo/StaticMap.php +++ b/p3k/geo/StaticMap.php @@ -190,6 +190,9 @@ function generate($params, $filename, $assetPath) { $zoom = k($params,'maxzoom'); } + $minZoom = 2; + if($zoom < $minZoom) + $zoom = $minZoom; $tileServices = array(