Hi @crazycapivara,
I'm using deckgl_proxy and update_deckgl to add layers to a previously rendered map in my Shiny app. I'm using one observeEvent for each layer I want to add to the map. The goal is that each layer is added on top of each other after each observeEvent. However, each time deckgl_proxy is called inside the event it removes the previously rendered layers and only leaves the layers from the original renderDeckgl and the new one from the event. If this is the expected behaviour, could you please suggest a workaround?
Also, is there a way to programmatically remove each layer?
Thanks,
Hi @crazycapivara,
I'm using
deckgl_proxyandupdate_deckglto add layers to a previously rendered map in my Shiny app. I'm using oneobserveEventfor each layer I want to add to the map. The goal is that each layer is added on top of each other after eachobserveEvent. However, each timedeckgl_proxyis called inside the event it removes the previously rendered layers and only leaves the layers from the originalrenderDeckgland the new one from the event. If this is the expected behaviour, could you please suggest a workaround?Also, is there a way to programmatically remove each layer?
Thanks,