Skip to content
This repository has been archived by the owner on May 24, 2019. It is now read-only.

Commit

Permalink
Filter out duplicate markers
Browse files Browse the repository at this point in the history
  • Loading branch information
Bert Ramakers committed Apr 18, 2019
1 parent 48dbd9f commit 7957096
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Format/HTML/Twig/GoogleMapUrlGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ public function getFunctions()
*/
public function generateGoogleMapUrl(array $markers, int $widthInPixels, int $heightInPixels): string
{
$markers = array_unique($markers);

$url = self::STATIC_MAP_URL;
$url .= '?size=' . $widthInPixels . 'x' . $heightInPixels;

Expand Down

0 comments on commit 7957096

Please sign in to comment.