Fix missing popup

This commit is contained in:
Eugene Burmakin 2025-06-08 23:44:53 +02:00
parent 1c38f691cf
commit 1435f20aa3

View file

@ -235,7 +235,7 @@ export function addHighlightOnHover(polylineGroup, map, polylineCoordinates, use
hoverPopup = L.popup()
.setLatLng(e.latlng)
.setContent(popupContent)
.openOn(map);
.addTo(map);
}
}
@ -329,7 +329,7 @@ export function addHighlightOnHover(polylineGroup, map, polylineCoordinates, use
hoverPopup = L.popup()
.setLatLng(e.latlng)
.setContent(popupContent)
.openOn(map);
.addTo(map);
// Prevent the click event from propagating to the map
L.DomEvent.stopPropagation(e);