Code example
`
output$map <- renderLeaflet({
leaflet() %>%
addProviderTiles(providers$Esri.WorldGrayCanvas)
})
observeEvent(input$fromDate, {
leafletProxy("map") %>%
clearMarkers() %>%
addMarkers(lng = filtered_deals()$LONGITUDE, lat = filtered_deals()$LATITUDE)
})`
Bug description
While leaflet seems to initiate just fine, I'd like to be able use leafletProxy as I do in other dashboard apps, but for some reason nothing actually happens when I do anything with it. All of the other functionality in the app seems to be working.
Anyone experience similar behavior and have a fix?
Expected behavior
I'd expect markers to show up dynamically as I filter.
Comments
No response
Code example
`
output$map <- renderLeaflet({
leaflet() %>%
addProviderTiles(providers$Esri.WorldGrayCanvas)
})
observeEvent(input$fromDate, {
leafletProxy("map") %>%
clearMarkers() %>%
addMarkers(lng = filtered_deals()$LONGITUDE, lat = filtered_deals()$LATITUDE)
})`
Bug description
While leaflet seems to initiate just fine, I'd like to be able use leafletProxy as I do in other dashboard apps, but for some reason nothing actually happens when I do anything with it. All of the other functionality in the app seems to be working.
Anyone experience similar behavior and have a fix?
Expected behavior
I'd expect markers to show up dynamically as I filter.
Comments
No response