You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Observe the behavior when zooming between two zoom levels that have resolutions which are not a factor of 2 apart, e.g. between level 12 and 13 (resolutions 0.25 and 0.1).
Expected behavior
Previous zoom level is retained (no dark gray flash):
Current behavior
Previous zoom level is pruned (dark gray flash):
Environment
Leaflet version: 1.4.0
Additional context
This is relevant for displaying maps from swisstopo (the national mapping agency of Switzerland), e.g. when using my Leaflet plugin, because their tile service has an "irregular" grid, see documentation of swisstopo. In their defense, these resolutions are mostly based on corresponding paper map scales that have been around for decades.
See example with swisstopo tiles here, they might be blocked in some countries, YMMV. Anyway, the minimal example with artificially delayed debug tiles below shows the problem more clearly.
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
Previous zoom level is retained (no dark gray flash):
Current behavior
Previous zoom level is pruned (dark gray flash):
Environment
Additional context
This is relevant for displaying maps from swisstopo (the national mapping agency of Switzerland), e.g. when using my Leaflet plugin, because their tile service has an "irregular" grid, see documentation of swisstopo. In their defense, these resolutions are mostly based on corresponding paper map scales that have been around for decades.
See example with swisstopo tiles here, they might be blocked in some countries, YMMV. Anyway, the minimal example with artificially delayed debug tiles below shows the problem more clearly.
Minimal example reproducing the issue
See this example on codepen.
The text was updated successfully, but these errors were encountered: