Added scale=2 to maps image

This commit is contained in:
Justin Foell
2019-08-02 15:57:14 -05:00
parent adf1612a39
commit 4a9b531fa6
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -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;
+1
View File
@@ -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 =