Skip to content

Commit

Permalink
Fix syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
dshanske committed Jul 12, 2020
1 parent ac5445e commit aa47c3a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions includes/class-map-provider-bing.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,20 +120,20 @@ public function get_archive_map( $locations ) {
return '';
}

$markers = array();
$path = array();
$markers = array();
$path = array();
$polyline = Polyline::encode( $locations );
$markers = array();
foreach ( $locations as $location ) {
$markers[] = sprintf( '%1$s,%2$s;51', $location[0], $location[1] );
$markers[] = sprintf( '%1$s,%2$s;51', $location[0], $location[1] );
}
$map = add_query_arg(
array(
'dc' => sprintf( 'l,,3;enc:%1$s', $polyline ),
'dc' => sprintf( 'l,,3;enc:%1$s', $polyline ),
'mapArea' => implode( ',', WP_Geo_Data::bounding_box( $locations ) ),
'key' => $this->api
'key' => $this->api,
),
sprintf( 'https://dev.virtualearth.net/REST/v1/Imagery/Map/%1$s/', $this->style ),
sprintf( 'https://dev.virtualearth.net/REST/v1/Imagery/Map/%1$s/', $this->style )
);
return $map . '&pp=' . implode( '&pp=', $markers );
}
Expand Down

0 comments on commit aa47c3a

Please sign in to comment.