Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rMaps and Shiny #102

Open
Stophface opened this issue Dec 21, 2015 · 3 comments
Open

rMaps and Shiny #102

Stophface opened this issue Dec 21, 2015 · 3 comments

Comments

@Stophface
Copy link

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
Copy link

Do they work together now?

@wikithink
Copy link

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

@dmirij
Copy link

dmirij commented Mar 6, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants