Fixed popup not appearing on custom marker fly to
This commit is contained in:
@@ -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)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user