Browse Source

Proto map plot

master
Maxime Wack 7 years ago
parent
commit
285f61d1fc
1 changed files with 15 additions and 0 deletions
  1. +15
    -0
      app.R

+ 15
- 0
app.R View File

@@ -188,6 +188,21 @@ server <- function(input, output, session)
scale_x_continuous(limits = c(min_age, max_age)) +
theme(axis.title = element_blank())
})
# Map

# observe({
# existing <- in_bounds()
# leafletProxy("map", data = filteredData()) %>%
# clearShapes() %>%
# })

# Use a separate observer to recreate the legend as needed.
# observe({
# Remove any existing legend, and only if the legend is
# enabled, create a new one.
# leafletProxy("map", data = quakes) %>%
# clearControls()
# if (input$legend) {
# pal <- colorpal()
# proxy %>% addLegend(position = "bottomright",
# pal = pal, values = ~mag


Loading…
Cancel
Save