You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you really want a basemap control you would have to load the layers s in a function, then call that function when the style is loaded - see mapbox/mapbox-gl-js#2268. You would also have to keep track of what layers were visible, all the data that was drawn on the map, etc. for when the basemap changes.
@reyemtm - thanks for the link and refresher - I forgot all about this issue. I've implemented this elsewhere since creating this ticket. Ideally - one of these days I'll incorporate that into the Layer Tree's functionality...
map.setStyle()
The text was updated successfully, but these errors were encountered: