Is there a way to toggle the style smoothly?
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
Use mapbox-gl-style diff https://github.com/mapbox/mapbox-gl-style-spec/blob/mb-pages/API.md#diffstylesbefore-after
Yep, that's the best way currently. See #1989 for other plans.
Hi thanks for the reply, but I am not sure how exactly to do that, could you give me an example? thanks in advance!
For example, https://www.mapbox.com/mapbox-gl-js/example/setstyle/ the toggle doesn't feel smooth at all