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.57k stars 524 forks source link

Heatmap offset from map while refresh during panning #42

Open josselin-c opened 8 years ago

josselin-c commented 8 years ago

When updating the heatmap layer while panning the map, the heatmap layer displays with an offset compared to the base map layer so the heatmap doesn't follow exactly the basemap movements.

To reproduce, you can use this code: https://gist.github.com/josselin-c/d1ea2b6e1c0fddea4f1b

mourner commented 8 years ago

Can you please set this up in a JSFiddle?

josselin-c commented 8 years ago

Here it is: http://jsfiddle.net/Ly4085Ln/

sinclarius commented 8 years ago

I've been having a similar problem—seems to be an issue with using setInterval() to update the input data.