Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
citizenair
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vmm
citizenair
Commits
c869fadc
Commit
c869fadc
authored
Nov 11, 2018
by
Jan Wijffels
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update valuebox of comparison station
parent
7b17b6aa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
citizenair/inst/apps/citizenair/page02-exploratory.Rmd
+8
-5
No files found.
citizenair/inst/apps/citizenair/page02-exploratory.Rmd
View file @
c869fadc
...
...
@@ -299,19 +299,22 @@ fillCol(
```{r}
renderValueBox({
## Triggers each time a user clicks on the leaflet app or when a user uploads new data
input$uiOutput_select_station_marker_click
userdata <- citizenair_userdata()
userdata$nearest_station <- userdata$appdata$getComparisonStation()
comparison_station <- input$uiOutput_select_station_marker_click
if(length(comparison_station) == 0){
comparison_station <- userdata$nearest_station
}
ui <- NULL
if(length(comparison_station) > 0){
stations <- userdata$appdata$getStations()
stations <- subset(stations, id %in% userdata$nearest
_station)
stations <- subset(stations, id %in% comparison
_station)
if(nrow(stations) > 0){
txt <- stations$label
txt <- strsplit(txt, "-")[[1]]
txt <- trimws(txt)
txt <- HTML(paste(txt, collapse = "<br>"))
ui <- valueBox(txt, caption = "Vergelijk met officieel meetstation")
}else{
ui <- NULL
}
}
ui
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment