This repository has been archived by the owner on Dec 8, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Support "nested" styles #25
Comments
Another user here trying to replicate this common Leaflet/Mapbox JSAPI use case (swapping out basemap beneath overlay layers). If there is a way to do this by constructing/manipulating a style object to change the "basemap" layers, an example in the documentation would go a long way to help. |
I support this idea. To side-step the problem, I find myself relying on multiple instances of mapbox gl and https://github.com/mapbox/mapbox-gl-sync-move. |
+1, I need to allow the user to pick a different basemap style while leaving their carefully selected overlay layers in place. |
This was referenced Jan 17, 2017
Migrated to mapbox/mapbox-gl-js#4000 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Injecting custom layers into Mapbox core styles is a common use case and confusing to our users, especially when the user wants to swap out the core style and keep the custom layers.
Have we considered supporting "nested styles"? These would help our users build a solid mental model of their stylesheet, encapsulate core style implementation details, allow new kinds of style modularity, and fit nicely into Studio.
The text was updated successfully, but these errors were encountered: