瀏覽代碼

Deleted code from example

master
Maxime Wack 7 年之前
父節點
當前提交
350b2e9676
共有 1 個文件被更改,包括 0 次插入14 次删除
  1. +0
    -14
      app.R

+ 0
- 14
app.R 查看文件

@@ -222,20 +222,6 @@ server <- function(input, output, session)
addPolygons(weight = 1, color = "#222222", opacity = .1, fillOpacity = .3, fillColor = ~pal(n)) %>%
addLegend(position = "topleft", pal = pal, values = ~n)
})

# 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
# )
# }
# })
}

shinyApp(ui = ui, server = server)

Loading…
取消
儲存