leaflet js overwriting other EventListeners?

27 views Asked by At

How to open modal from svgOverlay in leaflet?

I have Open Street Maps integrated with leaflet with an svgElement as overlay. In my svg there are several tags, and when clicking on these elements in the svg-overlay a javascript is set to open a modal. But nothing happens.

It seems like the EventListeners attached to the tags disappear when I implement the svg within the leaflet integrated map.

Is leaflet js overwriting the EventListeners written by the modal js?

Within the inspector, I have checked that the full svg code (including the -elements) are loaded.

0

There are 0 answers