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

intensity does not seem to work #74

Open matthieu80 opened 7 years ago

matthieu80 commented 7 years ago

Hi there, Changing the value of the intensities does not change the look of a map. Is there anything I am missing?

Thank you!

sorin-simu commented 7 years ago

Hi, I have this problem too. The intensity attribute doesn't seem to work. e.g.: [46.770439, 23.591423, "50"], [46.779439, 23.599423, "500.8"] looks the same on map.

@mourner Can you fix this bug in the near future ? Thanks a lot.

fullyBoricua commented 7 years ago

Unless you change the 'max' option (maximum point intensity) all points will look the same over the default value of "1". You are also passing the intensity as a string, it should be a number.

Try with: [46.770439, 23.591423, 0.5], [46.779439, 23.599423, 1] They should look different

sorin-simu commented 7 years ago

@fullyBoricua thanks for your response. I've change them as you said but the result in the same. image It seems like a bug .. @matthieu80

Harvinator commented 7 years ago

Hi,

I've submitted a pull request #78 which will hopefully resolve this

archeg commented 7 years ago

Looks like this is still an issue?

nakiabrewer commented 7 years ago

Can anyone confirm if this is still the case? I am using leafletheat as part of a modified Node Red node called 'world map' and am seeing the same results as the people above. When I set max to say 10 and provide an intensity value of 9 I'm getting the same visual result as when I provide a value of 1.

Zahma commented 7 years ago

Exactly me too i'm facing the same issue, the intensity doesn't change

astridx commented 7 years ago

Yes, I have got the problem, too. I use it with leaflet 1.1.0

hawthorner commented 7 years ago

Take the code from the pull request instead of master.

https://raw.githubusercontent.com/Harvinator/Leaflet.heat/dcf67f1aef555e0c214c2b6f904cf09a28d1c012/src/HeatLayer.js