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

Raster layer doesn't smoothly transition between zoom levels if the tiles are already loaded #4987

Open
kubapelc opened this issue Nov 4, 2024 · 2 comments
Labels
enhancement New feature or request PR is more than welcomed Extra attention is needed

Comments

@kubapelc
Copy link
Collaborator

kubapelc commented Nov 4, 2024

maplibre-gl-js version: v5.0.0-pre.5

browser: Firefox 128.4.0esr (win)

Steps to Trigger Behavior

  1. Open any raster map
  2. Zoom in at least one zoom level: observe that the transition to the more detailed tiles is smooth
  3. Zoom back out: the transition is now abrupt. Same with zooming back in.

Demo

Video demo: https://github.com/user-attachments/assets/3144ae09-cf91-4a69-a951-e86f239c1f21

Expected Behavior

Transitions between tile detail levels are always smooth.

Actual Behavior

Whether the transition is smooth depends on whether the tiles were already loaded or not.

@HarelM
Copy link
Collaborator

HarelM commented Nov 4, 2024

What is the first version you see this issue?
There was a cancel pending tiles loading flag that was added not long ago...

@HarelM HarelM added the need more info Further information is requested label Nov 4, 2024
@kubapelc
Copy link
Collaborator Author

kubapelc commented Nov 5, 2024

What is the first version you see this issue?

I've checked several versions and it happens as far back as 1.14.0. My guess is that smooth transition between already loaded zoom levels was never implemented.

I think it would make sense to have this feature, as it would make using MapLibre with traditional raster maps that have labels baked into the tile images much more pleasant.

@HarelM HarelM added enhancement New feature or request PR is more than welcomed Extra attention is needed and removed need more info Further information is requested labels Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request PR is more than welcomed Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants