Skip to content

leafletProxy not working #236

@enFinExplorer

Description

@enFinExplorer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions