Closed Matje1979 closed 3 years ago
Thanks for your comment.
It was a problem in L.LabelTextCollision.js.
Please use new version of Leaflet.streetlabels.js (v1.0.4) and you should now be able to use mouse events.
See "console.log" in our demo page: https://triedeti.github.io/Leaflet.streetlabels/
Greetings!
Hello,
I have installed leaflet-streetlabels and it works great, except that the mouse events that were previously working don't work anymore. When I hover over streets marked by geoJSON lines, nothing happens. It seems impossible to set the cursor to pointer when hovering over those lines. On the other hand, when I hover over pins, everything works as before. By inspecting the web page I noticed that the 'path' tags that represented geoJSON lines have disappeared from the html and are replaced by 'canvas' tags, and that tags that represent pins are still there. I also noticed that when I delete 'renderer : streetLabelsRenderer' from the code mouse events start working again. How can this problem be fixed?
Here is my code:
`
So, the 'click' event works, but mouseover, and mouseout events are somehow not recognized. I would be grateful if you would explain to me what is going on here and help me solve the problem.
Cheers, Damir