How to create an R Shiny selectInput control which is dependent on another select input. Two methods with code examples are shown: creating a reactive output variable, and using Shiny observe and observeEvent functions.
How to use Shiny’s selectInput control in R, how to add to layout and add choices to the selection list, and how to use the outputs.
Code to create a map in R Shiny using Leaflet. This example loads a base map, sets the centre and zoom, and has a reset button to return the map to the original view.