Hotfix for image size (widgets)

This commit is contained in:
Justin Foell
2020-06-26 16:45:05 -05:00
parent 138a608a0c
commit b3fefb5e1a
+5
View File
@@ -24,6 +24,11 @@ class WPStrava_StaticMap {
return '';
}
if ( ! $height || ! $width ) {
$height = 320;
$width = 480;
}
$url = "https://maps.googleapis.com/maps/api/staticmap?maptype=terrain&size={$width}x{$height}&scale=2&sensor=false&key={$key}&path=color:0xFF0000BF|weight:2|enc:";
$url_len = strlen( $url );
$max_chars = 1865;