Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes for bubble heatmap rendenering #56

Open
wants to merge 2 commits into
base: gh-pages
Choose a base branch
from

Conversation

spacemansteve
Copy link

I don't fully understand how the values are combined, but the change at line 149 works better for my heatmaps. Someone that understands the other use cases will likely have a better solution.

Optionally rendering all colors with the same transparency results in better heatmaps.

jstorheatmapalpha

…blem when 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant