Open
Description
opened on Sep 24, 2022
Hi there,
I'm using VectorGrid and trying to catch the click event on one of my feature/vectorgrid using following code:
vectorGrid.on('click', function(e) {
L.popup()
.setContent("test")
.setLatLng(e.latlng)
.openOn(map);
}
It works perfectly fine with Leaflet 1.7.1 but crashes with Leaflet 1.8+. I get the following error when the click happens:
Uncaught TypeError: L.DomEvent.fakeStop is not a function
at NewClass._onClick (Leaflet.VectorGrid.bundled.min.js:2:15768)
at HTMLCanvasElement.handler (DomEvent.js:108:13)
Leaflet.VectorGrid.bundled.min.js:2
Strangely, the "mouseover" event is working fine.
Any idea on how to get it working?
Thanks a lot
Sam
Metadata
Assignees
Labels
No labels
Activity