From 361b2c174c8985f6e05be04be4715b52209d932c Mon Sep 17 00:00:00 2001 From: Ralf Baussenwein Date: Sun, 2 May 2021 03:15:20 +0200 Subject: [PATCH] Fix open info window of marker --- .../Subscriber/Overlay/MarkerInfoWindowOpenSubscriber.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Helper/Subscriber/Overlay/MarkerInfoWindowOpenSubscriber.php b/src/Helper/Subscriber/Overlay/MarkerInfoWindowOpenSubscriber.php index a424319e..120315a8 100644 --- a/src/Helper/Subscriber/Overlay/MarkerInfoWindowOpenSubscriber.php +++ b/src/Helper/Subscriber/Overlay/MarkerInfoWindowOpenSubscriber.php @@ -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); + } } }