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

Relative heatmap #58

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

Conversation

Guitlle
Copy link

@Guitlle Guitlle commented May 14, 2016

Hi. This pull request adds relative heat maps feature. Check the following images, by draging the map, the heat map coloring changes according to the range of values being visualized.

To use it, set relative propertie to true in the options.

L.heatLayer(addressPoints, {relative: true}).addTo(map)

image

image

Guillermo Ambrosio added 3 commits May 13, 2016 18:15
I did this quickly in order to see a better heat map, with nicer
distribution of colors. I'm not sure what's the theory behind this but
this value worked ok for me, for the demo.
@spaasis
Copy link

spaasis commented May 14, 2016

The /dist/leaflet-heat.js seems to contain the main branch version of the L.HeatLayer. After copy-pasting seems to work nicely, though!

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.

2 participants