diff --git a/p3k/geo/StaticMap.php b/p3k/geo/StaticMap.php index d158e17..4700565 100644 --- a/p3k/geo/StaticMap.php +++ b/p3k/geo/StaticMap.php @@ -307,6 +307,7 @@ function generate($params, $filename, $assetPath) { $urls = array(); for($x = $swTile['x']; $x <= $neTile['x']; $x++) { + $x = (int)$x; if(!array_key_exists($x, $tiles)) { $tiles[$x] = array(); $overlays[$x] = array(); @@ -315,6 +316,7 @@ function generate($params, $filename, $assetPath) { } for($y = $swTile['y']; $y <= $neTile['y']; $y++) { + $y = (int)$y; $url = urlForTile($x, $y, $zoom, $tileURL); $urls[] = $url; $tiles[$x][$y] = false;