Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#43 crude patch that fixes intensity bug, probably creates problem wh…
…en intensity not present based on some code very kindly provided by github user jameslaneconkling. the code in L.heat that redraws the layers was multiplying intensities by a value related to the zoom level stored in a variable named v. v is typically a very small number, ranging from .008 to .00002. The code works better if it just uses the intensity value. Since I only provide points with an intensity value set, I'm not sure what happens when the intensity isn't set. The code probably breaks. This commit is not intended as a permanent fix. Instead, it highlights where the problem is. I hope someone that knows the code better considers re-organizing the render loop perhaps treating separating it into two distinct pieces: one for when intensities are provided and one where they are not.
- Loading branch information