qfes / rdeck

Deck.gl widget for R
https://qfes.github.io/rdeck
MIT License
97 stars 0 forks source link

Layers priority #89

Open bdbmax opened 1 year ago

bdbmax commented 1 year ago

Let me know if I missed it and it's already a possible option!

It would be great to be able to declare some type of layers priority, e.g. a layer of lines always appearing over a choropleth layer. An option could be a new argument like 'before_id' where we could specify before which layer the new layer should appear. I think it's which array appears before which?

anthonynorth commented 1 year ago

Layer rendering order is currently handled by index. First layer added is rendered on the bottom (above the basemap).

Interleaved deckgl and mapboxgl layers is planned. This will add support for before_id, which could be a mapboxgl or deckgl layer.