rMaps and Shiny
Stophface opened this issue · comments
Do they work together now?
When I try this
map <- Leaflet$new()
map$setView(c(lat = 1., lng = 1.), zoom = 5)
map$tileLayer(provider = "Stamen.Toner")
output$map <- renderMap({
map
})
I get no output. Any hints?
Do they work together now?
Error in envRefInferField: ‘elementId’ is not a valid field or method name for reference class “Leaflet”
Does anyone have a solution to this? I am having a very similar problem. Before, I post my code, can someone tell me? Does rMaps work in Shiny? I have a leaflet map using rMaps that works perfectly outside of shiny, but I am running into the same error when I try to do it in shiny. The error is:
Warning: Error in envRefInferField: ‘elementId’ is not a valid field or method name for reference class “Leaflet”
Does rMaps in general have a problem working in shiny?
Thank you very much.