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

Leaflet 0.6: redraw on pan #4

Closed
plattrap opened this issue Jun 30, 2013 · 2 comments
Closed

Leaflet 0.6: redraw on pan #4

plattrap opened this issue Jun 30, 2013 · 2 comments

Comments

@plattrap
Copy link

When running the demo with the leaflet 0.6 build and dragging with the mouse to pan, the tiles panned into view on the sync'd map are not getting loaded.

@jieter
Copy link
Owner

jieter commented Jul 1, 2013

Hmm, odd.
Just pushed a branch with some updates for 0.6.2, but did not manage to fix this issue yet...

@jieter
Copy link
Owner

jieter commented Jul 1, 2013

Hmm, if I comment out this line: https://github.com/Leaflet/Leaflet/blob/master/src/map/Map.js#L262 , this issue is gone...

The implementation of invalidateSize() seems to only do something if the size actually changed, which could be expected from its name, however, it used to cause the desired side effect before.

Adding map.fire('move') fixes the issue, will make a PR...

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

No branches or pull requests

2 participants