R/dependencies.R

layerswitcher_dependencies <- function() {
  list(
    htmltools::htmlDependency(
      "ol-layerswitcher",
      version = "1.1.2",
      src = system.file("htmlwidgets/plugins/ol-layerswitcher", package = "openlayers"),
      script = c("ol3-layerswitcher.js", "ol-layerswitcher-bindings.js"),
      stylesheet = "ol3-layerswitcher.css"
    )
  )
}
crazycapivara/openlayers documentation built on June 4, 2019, 8:08 p.m.