Closed marsmith closed 4 years ago
I've looked on the leaflet code, it seems that the bug is since now Leaflet consider this as marker since it has getLatLng function.
https://github.com/Leaflet/Leaflet/blame/master/src/map/Map.js#L1378
You can read the thread on this issue, it has a discussion of the problem, and at least a temporary fix: https://github.com/Leaflet/Leaflet.VectorGrid/issues/148
There is also a fork you can use with a fix implemented already: https://github.com/chriszrc/Leaflet.VectorGrid
This problem seems to show up in the unmodified demo too: http://leaflet.github.io/Leaflet.VectorGrid/demo-points.html (with the same error in chromium; in firefox you get several "TypeErrors t is undefined" and "L.DomEvent._fakeStop is not a function" if you click on something)
Duplicate of #148
Using version 1.3.0, it seems like there is an issue with events when
interactive: true
is set. Console is showing "Uncaught TypeError: Cannot read property 'lat' of undefined" on any event (click, mouseover). I basically just tweaked the demo.added jsfiddle: https://jsfiddle.net/gfpzvs28/
Here is my code: