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
leafletProxy doesn't work with htmlwidgets_0.6 and shinydashboard #242
Comments
Thanks for the heads up, I'll investigate. |
I think I've fixed it. Can you try it again with one of these two builds? devtools::install_github("rstudio/leaflet") # for latest (unstable) or devtools::install_github("rstudio/leaflet@joe/bugfix/htmlwidgets_0.6") # for CRAN patch (stable) |
Thanks for your quick fix. It's working now for htmlwidgets_0.6 However, I find another bug for
My session infor:
|
I think I find the reason above error of shinydashboard. When shiny app is opening, the second |
On the server side can you try adding |
I've submitted Leaflet 1.0.1 to CRAN. Thanks again for the report. If the problem with shinydashboard persists, please submit a new issue. Thanks! |
on FITZ -> ohi-science.nceas.ucsb.edu solution suggested at rstudio/leaflet#242 ```r outputOptions(output, "map1", suspendWhenHidden=FALSE) ```
Hi all just as an FYI and hope this is helpful- I had this same issue without shinydashboard when trying to render a 2nd leaflet map on a separate tab. Tried updating leaflet, but adding |
Using Leaflet 2.0.2 - I still experience the issue. Adding |
Been struggling for a while with this issue. My 2nd map element wouldn't load unless an event was triggered. I'm not entirely sure if this is due to multiple tabs or proxy functions. But this solution works for me. Looks like this works for BS4Dash-based Shiny apps. Pasting relevant session info below: |
it seem function
leafletProxy
is not working in htmlwidgets_0.6. the error message in console isI used the second example in this page: https://rstudio.github.io/leaflet/shiny.html
The latest version in the github has the same problem.
The
htmlwidgets_0.5
is working fine withleafletProxy
The text was updated successfully, but these errors were encountered: