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

Use _fakeStop when present instead of fakeStop for older versions of Leaflet.

Open seabre opened this issue 3 years ago • 1 comments

Checks for presence of old _fakeStop method. If it's available, use it instead. If not, use the new fakeStop.

seabre avatar Nov 04 '20 15:11 seabre

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.

seabre avatar Nov 04 '20 15:11 seabre