Leaflet.VectorGrid icon indicating copy to clipboard operation
Leaflet.VectorGrid copied to clipboard

Problem with Leaflet >= 1.8

Open SamG92 opened this issue 1 year ago • 3 comments

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

SamG92 avatar Sep 24 '22 16:09 SamG92