ramnathv / rMaps

Interactive Maps from R
http://rmaps.github.io
389 stars 194 forks source link

rMaps and Shiny #102

Open Stophface opened 8 years ago

Stophface commented 8 years ago

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?

NahuelGrasso commented 7 years ago

Do they work together now?

wikithink commented 7 years ago

Error in envRefInferField: ‘elementId’ is not a valid field or method name for reference class “Leaflet”

dmirij commented 6 years ago

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.