diff --git a/lib/WPStrava/StaticMap.php b/lib/WPStrava/StaticMap.php index 14b4894..d84e5b8 100644 --- a/lib/WPStrava/StaticMap.php +++ b/lib/WPStrava/StaticMap.php @@ -23,7 +23,7 @@ class WPStrava_StaticMap { return ''; } - $url = "https://maps.googleapis.com/maps/api/staticmap?maptype=terrain&size={$width}x{$height}&sensor=false&key={$key}&path=color:0xFF0000BF|weight:2|enc:"; + $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; diff --git a/readme.txt b/readme.txt index 497e39b..2d3f0e2 100644 --- a/readme.txt +++ b/readme.txt @@ -87,6 +87,7 @@ WP-Strava caches activity for one hour so your site doesn't hit the Strava API o Added setting to hide elevation. Fixed hours for activities greater than 24 hours. +Added scale=2 to static map to which allows for greater pixel resolution (up to 1024x1024 at 2x) for Google Maps API Premium Plan subscribers https://developers.google.com/maps/documentation/maps-static/dev-guide#Imagesizes = 1.7.1 =