Closed floveil closed 3 years ago
Ah, this is a nasty bug, also because there are no errors / warnings.
Unfortunately I named some functions in leaflet.extras2
alsomenuItem
, which apparently causes some confusion.
I will be renaming these functions in the next release.
In the meantime, you can explicitly call all the menuItem
ofshinydashboard
like this shinydashboard::menuItem ()
It works ! Thank you very much
Hi,
I develop a web interface via R with shiny, leaflet, mapedit, and mapview (these are the main packages used). To add a popup with WMS data in my map, I use the leaflet.extras2 package. In my shiny application, I also added a dashboard. But, when I use addWMS() from the leaflet.extras2 package with the dashboard, my page does not work. (Code n°1) To test, I added my WMS feed with the addWMStiles function (from the leaflet package and without popup), and my page works perfectly. (Code 2) The results are at the end of the post.
When the Leaflet.extras2 package is loaded, the shiny dashboard does not work? Does anyone have a solution? Thank you very much in advance.
Code n°1 : Using addWMS() with dashboard (when leaflet.extra is charged) :
Code n°2 : Using addWMSTile() with dashboard (when leaflet.extra is not charged) :
Results of Code n°1 and Code N°2