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

Relative heatmap #58

Open Guitlle opened 8 years ago

Guitlle commented 8 years ago

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

spaasis commented 8 years ago

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