From 244bd06f37b74dd32c3a02dee4c869101960826b Mon Sep 17 00:00:00 2001 From: Alexis <35.alexis.pele@gmail.com> Date: Sat, 13 Jan 2024 14:18:38 +0100 Subject: [PATCH] Fixed popup not appearing on custom marker fly to --- src/components/maps/WorldMap.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/maps/WorldMap.astro b/src/components/maps/WorldMap.astro index 11a60318..ffb21c12 100644 --- a/src/components/maps/WorldMap.astro +++ b/src/components/maps/WorldMap.astro @@ -349,7 +349,7 @@ function addCustomMarker(markerTitle) { document.addEventListener(`fly-to-${markerTitle}`, (e) => { map.flyTo(customMarkerCoords, flyToZoomLevel, { duration: flyToDuration }) setTimeout(() => { - marker.openPopup() + customMarker.openPopup() }, flyToDuration * 1000) })