mirror of
https://github.com/10h30/wp-strava.git
synced 2026-06-05 15:10:01 +09:00
Hotfix for image size (widgets)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user