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

[GridLayer] redraw tiles properly after changing maxNativeZoom #6443

Merged
merged 7 commits into from
Nov 26, 2021

Conversation

cherniavskii
Copy link
Sponsor Collaborator

@cherniavskii cherniavskii commented Dec 24, 2018

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

@cherniavskii cherniavskii changed the title [GridLayer] redraw tiles properly after changing maxNativeZoom WIP [GridLayer] redraw tiles properly after changing maxNativeZoom Dec 24, 2018
@cherniavskii cherniavskii changed the title WIP [GridLayer] redraw tiles properly after changing maxNativeZoom [GridLayer] redraw tiles properly after changing maxNativeZoom Dec 24, 2018
IvanSanchez
IvanSanchez previously approved these changes Dec 28, 2018
Copy link
Member

@IvanSanchez IvanSanchez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cherniavskii
Copy link
Sponsor Collaborator Author

Btw, running CI tests in Firefox really helped here - at some point tests passed in PhantomJS, but failed in Firefox

@cherniavskii
Copy link
Sponsor Collaborator Author

I guess I'll wait for one more approval for this PR just to make sure it will not break anything

@ghybs
Copy link
Collaborator

ghybs commented Jan 10, 2019

Happy new year!

Here is the updated Plunker showing the PR in action:
https://plnkr.co/edit/sYllVqYkicUfolcAP2SW?p=preview

Would probably benefit from a test.

@cherniavskii
Copy link
Sponsor Collaborator Author

@ghybs Happy New Year to you too!

Thanks for looking into this.
Yeah, this is a good case for regression test, will try to add one later.

@johnd0e johnd0e dismissed IvanSanchez’s stale review May 2, 2020 11:47

enhancement is possible

@johnd0e johnd0e self-requested a review July 7, 2020 10:28
Copy link
Collaborator

@johnd0e johnd0e left a 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.

@Falke-Design
Copy link
Member

@mourner @IvanSanchez this would be a easy thing to review & merge

@johnd0e johnd0e added this to the 1.8 milestone Nov 26, 2021
@johnd0e johnd0e requested a review from mourner November 26, 2021 15:36
@mourner mourner merged commit 2e86387 into master Nov 26, 2021
@mourner mourner deleted the cherniavskii-patch-1 branch November 26, 2021 15:39
mourner added a commit to johnd0e/Leaflet that referenced this pull request Dec 2, 2021
* 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)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[GridLayer] redraw doesn't draw tiles properly after changing maxNativeZoom
6 participants