addCopernicusWMSTiles | R Documentation |
Create an interactive map with
leaflet::leaflet()
and add layers of Copernicus marine WMS data
to it.
addCopernicusWMSTiles(
map,
product,
layer,
variable,
options = leaflet::WMSTileOptions(format = "image/png", transparent = TRUE),
...
)
map |
A map widget object created from |
product |
An identifier (type |
layer |
The name of a desired layer within a product (type |
variable |
The name of a desired variable in a specific layer of a product (type |
options |
Passed on to |
... |
Passed on to |
Returns an updated map
WMS functions don't work on systems that don't support GDAL utils
Pepijn de Vries
Other wms-functions:
copernicus_wms2geotiff()
,
copernicus_wms_details()
## Not run:
if (interactive()) {
leaflet::leaflet() |>
leaflet::setView(lng = 3, lat = 54, zoom = 4) |>
leaflet::addProviderTiles("Esri.WorldImagery") |>
addCopernicusWMSTiles(
product = "GLOBAL_ANALYSISFORECAST_PHY_001_024",
layer = "cmems_mod_glo_phy-thetao_anfc_0.083deg_P1D-m",
variable = "thetao")
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.