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

Is there a way to toggle the style smoothly? #2823

Closed
ZhenanH opened this issue Jul 6, 2016 · 4 comments
Closed

Is there a way to toggle the style smoothly? #2823

ZhenanH opened this issue Jul 6, 2016 · 4 comments

Comments

@ZhenanH
Copy link

ZhenanH commented Jul 6, 2016

the 'setStyle' method remove the old style with layers, so it does't feel smooth when switching styles. What't the best way to switch styles for example between 'street-v9' and 'outdoors'?

thanks

@jingsam
Copy link
Contributor

jingsam commented Jul 6, 2016

@jfirebaugh
Copy link
Contributor

Yep, that's the best way currently. See #1989 for other plans.

@ZhenanH
Copy link
Author

ZhenanH commented Jul 8, 2016

Hi thanks for the reply, but I am not sure how exactly to do that, could you give me an example? thanks in advance!

@ZhenanH
Copy link
Author

ZhenanH commented Jul 8, 2016

For example, https://www.mapbox.com/mapbox-gl-js/example/setstyle/ the toggle doesn't feel smooth at all

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

No branches or pull requests

3 participants