heatcanvas icon indicating copy to clipboard operation
heatcanvas copied to clipboard

Heatmap PNG's don't resize with zoom

Open bozdoz opened this issue 12 years ago • 1 comments

On the Leaflet demo: http://sunng87.github.com/heatcanvas/leaflet.html

If you zoom in or out, the map data seems incorrect, because the PNGs cover more or less area. For example: at the initial zoom level, central-west America has no data, once zoomed out the data seems to span all of America, and zoomed in, it seems empty again.

leafletheatmap

There should be a way to resize the PNG appropriately once the map zoom level has changed.

bozdoz avatar Feb 19 '13 17:02 bozdoz

Yes, this is designed feature. The leaflet plugin only calculates and shows heat map in current view. So when you zoom in and out, it redraws based in new extent.

I am thinking about adding an option to control this behavior: to redraw based in global or local.

sunng87 avatar Feb 24 '13 07:02 sunng87