Leaflet.heat icon indicating copy to clipboard operation
Leaflet.heat copied to clipboard

Negative values

Open ClemC opened this issue 9 years ago • 3 comments

Hello,

I would like to specify a heat map with negative and positive values. Is it possible ?

Example : [ P1 {lat:0, lng:0, value: -0.5}, P2 {lat:10, lng:0, value: -0.2}, P3 {lat:10, lng:10, value: 0.3} ]

I think about a solution but it doesn't work : In this example, if I add 0.5 to the values I will have positive values. However, assuming 0 is blue and 1 is red, the fusion of P1 and P2 will produce a more red color although a fusion of negative values will produce a more blue color.

Thank you

ClemC avatar May 19 '15 09:05 ClemC

Not possible at the moment.

mourner avatar Oct 26 '15 16:10 mourner

@mourner any news on this? I have Data where values are going below 0....

marcel12bell avatar Feb 17 '17 12:02 marcel12bell

Scale all the values with positive and negative value to [0 to 1] so we can use Leaflet.Heatmap to display heatmap

VBIManonmaniM avatar Dec 26 '17 12:12 VBIManonmaniM