Skip to content

Commit

Permalink
Merge pull request #11 from rabauss/hotfix/marker-infowindow
Browse files Browse the repository at this point in the history
Fix opening of info window of marker
  • Loading branch information
bresam authored May 3, 2021
2 parents 0bf0a9f + 361b2c1 commit 149535b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ public function handleMap(MapEvent $event)
$rawEvent
));
}
if ($marker->hasInfoWindow() && $marker->getInfoWindow()->isOpen()) {
$event->addCode($formatter->renderCode($this->infoWindowOpenRenderer->render($marker->getInfoWindow(), $map, $marker)));
$marker->getInfoWindow()->setOpen(false);
}
}
}

Expand Down

0 comments on commit 149535b

Please sign in to comment.