From 6d31ee4b62c295cd1774a6d85010e53b67857007 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Sat, 18 Mar 2017 12:54:16 -0700 Subject: [PATCH] add parameter to force attribution image to be small --- p3k/geo/StaticMap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p3k/geo/StaticMap.php b/p3k/geo/StaticMap.php index f53d1db..8339104 100644 --- a/p3k/geo/StaticMap.php +++ b/p3k/geo/StaticMap.php @@ -531,7 +531,7 @@ function generate($params, $filename, $assetPath) { // Shrink the esri logo if the image is small if($width > 120) { - if($width < 220) { + if($width < 220 || k($params, 'attribution') == 'small') { $shrinkFactor = 2; imagecopyresampled($im, $logo, $width-round(imagesx($logo)/$shrinkFactor)-4, $height-round(imagesy($logo)/$shrinkFactor)-4, 0,0, round(imagesx($logo)/$shrinkFactor),round(imagesy($logo)/$shrinkFactor), imagesx($logo),imagesy($logo)); } else {