cms_wmts_details | R Documentation |
Functions for retrieving Web Map Tile Services infromation for
specific products, layers and variables and add them to a leaflet
map.
cms_wmts_details(product, layer, variable)
addCmsWMTSTiles(
map,
product,
layer,
variable,
tilematrixset = "EPSG:3857",
options = leaflet::WMSTileOptions(format = "image/png", transparent = TRUE),
...
)
cms_wmts_get_capabilities(product, layer, variable, type = c("list", "xml"))
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 |
map |
A map widget object created from |
tilematrixset |
A |
options |
Passed on to |
... |
Passed on to |
type |
A |
cms_wmts_details
returns a tibble with detains on the WMTS service.
cms_wmts_getcapabilities
returns either a list
or xml_document
depending on the value
of type
. AddCmsWMTSTiles
returns a leaflet
map
updated with the requested tiles.
Pepijn de Vries
cms_wmts_details(
product = "GLOBAL_ANALYSISFORECAST_PHY_001_024",
layer = "cmems_mod_glo_phy-thetao_anfc_0.083deg_P1D-m",
variable = "thetao"
)
cms_wmts_get_capabilities("GLOBAL_ANALYSISFORECAST_PHY_001_024")
if (interactive()) {
leaflet::leaflet() |>
leaflet::setView(lng = 3, lat = 54, zoom = 4) |>
leaflet::addProviderTiles("Esri.WorldImagery") |>
addCmsWMTSTiles(
product = "GLOBAL_ANALYSISFORECAST_PHY_001_024",
layer = "cmems_mod_glo_phy-thetao_anfc_0.083deg_P1D-m",
variable = "thetao")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.