mirror of
https://github.com/10h30/wp-strava.git
synced 2026-07-11 18:56:18 +09:00
Added scale=2 to maps image
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user