Leaflet / Leaflet.heat

A tiny, simple and fast heatmap plugin for Leaflet.
http://leaflet.github.io/Leaflet.heat/demo
BSD 2-Clause "Simplified" License
1.55k stars 525 forks source link

Fix k value generation that could lead to NaN #60

Open jonl-percsolutions-com opened 8 years ago

jonl-percsolutions-com commented 8 years ago

In redraw, if alt == 0 or NaN, it could lead to a k value = 0, which in some edge cases would cause cell[0] and cell[1] to be NaN and for data to not be displayed on the map.