Skip to content

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

1 message · Kent Johnson

#
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.