Leaflet.heat
Leaflet.heat copied to clipboard
Negative values
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
Not possible at the moment.
@mourner any news on this? I have Data where values are going below 0....
Scale all the values with positive and negative value to [0 to 1] so we can use Leaflet.Heatmap to display heatmap