Leaflet.VectorGrid
Leaflet.VectorGrid copied to clipboard
Use _fakeStop when present instead of fakeStop for older versions of Leaflet.
Checks for presence of old _fakeStop
method. If it's available, use it instead. If not, use the new fakeStop
.
Just to add why this is necessary: while this library works fine on older versions of Leaflet otherwise, the call to fakeStop
breaks functionality with click events and etc. The fakeStop
method is the same as the _fakeStop
method in previous versions, it was just renamed to fakeStop
in newer Leaflet releases.