Skip to content

Commit

Permalink
reset button added to map, closes stevenpbachman#6
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenpbachman committed Feb 3, 2023
1 parent 3cf4d3b commit 73f4993
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion R/app.R
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,12 @@ geocatApp <- function(...) {

fluidRow(
column(
12, align="center",
8, align="center",
downloadButton('download', "Download SIS point file")
),
column(
4, align = "center",
actionButton("reset", "Reset")
)
)
),
Expand All @@ -119,6 +123,11 @@ server <- function(input, output, session) {
analysis_data=tibble::tibble()
)

observeEvent(input$reset,{
session$reload()
}
)

# prepare the points
csvpointsInput <- shiny::eventReactive(input$csv_in, {
ext <- tools::file_ext(input$csv_in$datapath)
Expand Down

0 comments on commit 73f4993

Please sign in to comment.