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

Preloading maptiles for camera animation stopped working #13386

Open
crunchwrap89 opened this issue Jan 16, 2025 · 1 comment
Open

Preloading maptiles for camera animation stopped working #13386

crunchwrap89 opened this issue Jan 16, 2025 · 1 comment

Comments

@crunchwrap89
Copy link

mapbox-gl-js version: 3.9.3, also confirmed in 3.6

browser: Chrome & Firefox confirmed

Steps to Trigger Behavior

  1. Add a mapboxgljs map
  2. Preload maptiles and await idle before running flyTo.
    Code example:
map.flyTo({center: [-119.5375, 37.7425], preloadOnly: true});
await map.once('idle');
map.flyTo({center: [-119.5375, 37.7425]});

Expected Behavior

Maptiles should be preloaded before animation starts for a smooth animation.

Actual Behavior

Animation runs instantly, tiles are not preloaded. Resulting in a laggy animation.
The lag is more visible on a less performant device, such as a mobile phone.

@underoot
Copy link
Member

Hey, @crunchwrap89! Thank you for your report!
Could you share a minimal reproducible example in the service like https://jsfiddle.net/. It will help the team with the investigation.

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

No branches or pull requests

2 participants