mirror of
https://github.com/10h30/wp-strava.git
synced 2026-07-19 14:44:06 +09:00
Reverse mapbox lat/lon
This commit is contained in:
@@ -68,8 +68,8 @@ class WPStrava_StaticMapbox extends WPStrava_StaticMap {
|
|||||||
|
|
||||||
if ( $markers ) {
|
if ( $markers ) {
|
||||||
$points = $this->decode_start_finish( $polyline );
|
$points = $this->decode_start_finish( $polyline );
|
||||||
$path[] = "pin-s+008000({$points['start'][0]},{$points['start'][1]})";
|
$path[] = "pin-s+008000({$points['start'][1]},{$points['start'][0]})";
|
||||||
$path[] = "pin-s+ff0000({$points['finish'][0]},{$points['finish'][1]})";
|
$path[] = "pin-s+ff0000({$points['finish'][1]},{$points['finish'][0]})";
|
||||||
}
|
}
|
||||||
|
|
||||||
// polyline must be URL encoded https://stackoverflow.com/a/65523379/2146022
|
// polyline must be URL encoded https://stackoverflow.com/a/65523379/2146022
|
||||||
|
|||||||
Reference in New Issue
Block a user