Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heatmap PNG's don't resize with zoom #15

Open
bozdoz opened this issue Feb 19, 2013 · 1 comment
Open

Heatmap PNG's don't resize with zoom #15

bozdoz opened this issue Feb 19, 2013 · 1 comment
Labels

Comments

@bozdoz
Copy link
Contributor

bozdoz commented Feb 19, 2013

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.

@sunng87
Copy link
Owner

sunng87 commented Feb 24, 2013

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants