Fixed popup not appearing on custom marker fly to

This commit is contained in:
Alexis
2024-01-13 14:18:38 +01:00
parent 4c1bd4ff44
commit 244bd06f37

View File

@@ -349,7 +349,7 @@ function addCustomMarker(markerTitle) {
document.addEventListener(`fly-to-${markerTitle}`, (e) => { document.addEventListener(`fly-to-${markerTitle}`, (e) => {
map.flyTo(customMarkerCoords, flyToZoomLevel, { duration: flyToDuration }) map.flyTo(customMarkerCoords, flyToZoomLevel, { duration: flyToDuration })
setTimeout(() => { setTimeout(() => {
marker.openPopup() customMarker.openPopup()
}, flyToDuration * 1000) }, flyToDuration * 1000)
}) })