Skip to content
Prev 26404 / 29559 Next

"Preselecting" shapes on leaflet map shiny using mapedit::selectmod

Remove the observe() and put the check for input$selectable inside
observeEvent(). If the input is not selectable then you ignore the click
event; if it is selectable then you handle the click. You don't need to
respond directly to changes in input$selectable.