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

Set 'raster-fade-duration': 0 for smooth layer animation #53

Open
wkramer opened this issue Nov 3, 2022 · 0 comments
Open

Set 'raster-fade-duration': 0 for smooth layer animation #53

wkramer opened this issue Nov 3, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@wkramer
Copy link
Collaborator

wkramer commented Nov 3, 2022

For smooth animation we load the new layer with opacity 0. When completely loaded the opacity of the new layer set to 1 and the old layer is set to 0 and removed.
There should be no fade between the old and new layer with the option 'raster-fade-duration': 0.
This option triggers a but when zooming tiles: mapbox/mapbox-gl-js#12241

@wkramer wkramer added the enhancement New feature or request label Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant