Style-spec slots #3787
Replies: 3 comments 6 replies
-
Not that I'm aware of, generally speaking, we can't copy from mapbox so I wouldn't know how to reconcile this... |
Beta Was this translation helpful? Give feedback.
-
I understand that we can't backport, but would it not be possible to develop something that more or less achieves the same thing without infringing on mapbox? One idea could be add a parameter to the add layer object, call it 'region', where one supplies a name for a layer stack region. The ordering of regions themselves could be first come first serve, or there could be a sort of regions definition dict in the map initialization parameters. This seems to solve the same thing, more or less. I know the implications of this would be widespread throughout the code base, but I'm just wondering if this approach would be on the same page with the maintainers of maplibre. |
Beta Was this translation helpful? Give feedback.
-
I was searching for maplibre slots and it gave this somewhat amusing AI overview
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I was wondering if any discussion had occurred about supporting slots https://docs.mapbox.com/style-spec/reference/slots/.
This would be a really useful tool to help us with layer ordering as we currently have to render all layers (lets say 1-10) - possibly with 0 data - because they are toggleable by the user, to maintain the correct z-index.
Beta Was this translation helpful? Give feedback.
All reactions