Skip to content

Changes for bubble heatmap rendenering#56

Open
spacemansteve wants to merge 2 commits intoLeaflet:gh-pagesfrom
spacemansteve:gh-pages
Open

Changes for bubble heatmap rendenering#56
spacemansteve wants to merge 2 commits intoLeaflet:gh-pagesfrom
spacemansteve:gh-pages

Conversation

@spacemansteve
Copy link
Copy Markdown

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