addCopernicusWMSTiles {CopernicusMarine} | 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()
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")
}