-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
[GridLayer] redraw tiles properly after changing maxNativeZoom #6443
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Btw, running CI tests in Firefox really helped here - at some point tests passed in PhantomJS, but failed in Firefox |
I guess I'll wait for one more approval for this PR just to make sure it will not break anything |
Happy new year! Here is the updated Plunker showing the PR in action: Would probably benefit from a test. |
@ghybs Happy New Year to you too! Thanks for looking into this. |
ea7c1c4
to
3a0980c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just added simple test.
@mourner @IvanSanchez this would be a easy thing to review & merge |
* master: (180 commits) Create leaflet-coloricon.md (Leaflet#7812) Update zoom buttons documentation text (Leaflet#7815) Lint examples (Leaflet#7827) revert linting examples (accidentally pushed to master) add linting to examples (WIP) Tests: simplify .near and .nearLatlng usage (Leaflet#7820) Simplifiy examples (Leaflet#7816) [GridLayer] redraw tiles properly after changing maxNativeZoom (Leaflet#6443) New TapHold handler instead of legacy Tap (Leaflet#7026) Fix Leaflet#7439 for mousemove (Leaflet#7809) Improve panInside documentation (Leaflet#7397) ignore built docs when running eslint Update Renderer documentation to clarify tolerance option Canvas only (Leaflet#7515) Add documentation for Event Listens Propagate argument. Fixes Leaflet#6912 (Leaflet#7103) Add aria-hidden to the +/- characters of zoom controls (Leaflet#7795) Fix Popup keepInView if the map needs to panned over a long distance (Leaflet#7792) Accessibility popup close button (Leaflet#7794) Add keepInView test (Leaflet#7790) Add fallbacks to font-size (Leaflet#7800) Remove leaflet-include.js (Leaflet#7776) ...
This is blind attempt to fix #6438
Case 1: set
maxNativeZoom
higher than current zoom and redraw:Before / After:
Case 2: Zoom in, set
maxNativeZoom
higher than initial zoom and redraw:Before / After:
Playground link:
https://plnkr.co/edit/ORkCquW4i2kIYLyOmcjl?p=preview