-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
45 lines (44 loc) · 1.22 KB
/
ui.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# UI components
ui <- fluidPage(
titlePanel("Poland Map with Points from CSV"),
sidebarLayout(
sidebarPanel(
fileInput("file", "Upload CSV File", accept = c(".csv"),placeholder = "Choose a CSV file"),
conditionalPanel(
condition = "input.tab == 'Map'",
uiOutput("scientific_search"),
uiOutput("vernacular_search"),
uiOutput("sex_selector"),
uiOutput("kingdom_selector"),
uiOutput("has_image_sele"),
uiOutput("filter_images")
),
conditionalPanel(
condition = "input.tab == 'Map'",
div(style = "margin-bottom: 15px;",
actionButton("apply_filter", "Apply Filters"),
actionButton("remove_all_filters", "Remove Filters")
),
),
conditionalPanel(
condition = "input.tab == 'Timeline'",
uiOutput("species_selector")
)
),
mainPanel(
tabsetPanel(
id="tab",
tabPanel(
"Map",
div(
id = "map_container",
style = "position: relative;",
leafletOutput("map", height = "600px"),
uiOutput("map_overlay")
)
),
tabPanel("Timeline", uiOutput("timeline_content"))
)
)
)
)