addCopernicusWMSTiles {CopernicusMarine} | R Documentation |
Add Copernicus Marine WMS Tiles to a leaflet map
Description
Create an interactive map with
leaflet::leaflet()
and add layers of Copernicus marine WMS data
to it.
Usage
addCopernicusWMSTiles(
map,
product,
layer,
variable,
options = leaflet::WMSTileOptions(format = "image/png", transparent = TRUE),
...
)
Arguments
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 |
Value
Returns an updated map
Note
WMS functions don't work on systems that don't support GDAL utils
Author(s)
Pepijn de Vries
See Also
Other wms-functions:
copernicus_wms2geotiff()
,
copernicus_wms_details()
Examples
## 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)