Skip to content

Updating deckgl map in shiny removes previous layer #214

@hdmm3

Description

@hdmm3

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,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions