From aa47c3ab9a4cc68f2ed2168590bc602785d6705d Mon Sep 17 00:00:00 2001 From: David Shanske Date: Sun, 12 Jul 2020 03:28:36 +0000 Subject: [PATCH] Fix syntax error --- includes/class-map-provider-bing.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/includes/class-map-provider-bing.php b/includes/class-map-provider-bing.php index b727450..f35f15e 100644 --- a/includes/class-map-provider-bing.php +++ b/includes/class-map-provider-bing.php @@ -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 ); }