alexdum commited on
Commit
1d21202
·
1 Parent(s): a65461a

feat: Add state/land selection based on URL parameter `landname`.

Browse files
Files changed (1) hide show
  1. server.R +6 -1
server.R CHANGED
@@ -138,7 +138,12 @@ server <- function(input, output, session) {
138
  updateDateRangeInput(session, "date_range", start = params$start, end = params$end)
139
  }
140
 
141
- # 3. Station Selection
 
 
 
 
 
142
  if (!is.null(params$station)) {
143
  station_ref <- params$station
144
  # We need to wait for stations to load?
 
138
  updateDateRangeInput(session, "date_range", start = params$start, end = params$end)
139
  }
140
 
141
+ # 3. State/Land Selection
142
+ if (!is.null(params$landname)) {
143
+ updateSelectizeInput(session, "state_selector", selected = params$landname)
144
+ }
145
+
146
+ # 4. Station Selection
147
  if (!is.null(params$station)) {
148
  station_ref <- params$station
149
  # We need to wait for stations to load?