I have fixed the map so that it's responsive to the year filter, even after the click. The solution was provided by the combination of leafletProxy() and observe(). I have added also some examples of value boxes to the app. however, there is some dependency between the clicked map and the value in the boxes that I don't really understand ( hence draft pull request), but I suspect it might be solve by some combination of reactiveVals and bindEvent.
By the way ,this is run on a dataset with an updated data cleaning procedure. The single digit numbers still show up. @cforgaci , you might want to adapt this.
To get more insights on what bs4Dash package has to offer , run bs4Dash::bs4DashGallery().
Hi Both,
I have fixed the map so that it's responsive to the year filter, even after the click. The solution was provided by the combination of
leafletProxy()
andobserve()
. I have added also some examples of value boxes to the app. however, there is some dependency between the clicked map and the value in the boxes that I don't really understand ( hence draft pull request), but I suspect it might be solve by some combination ofreactiveVals
andbindEvent
.By the way ,this is run on a dataset with an updated data cleaning procedure. The single digit numbers still show up. @cforgaci , you might want to adapt this.
To get more insights on what
bs4Dash
package has to offer , runbs4Dash::bs4DashGallery()
.