map_ss_wms | R Documentation |
Returns interactive map with Seascapes as image tiles (not data) from web map server (wms).
map_ss_wms(
ss_info,
ply = NULL,
date = max(get_ss_dates(ss_info)),
ss_var = "CLASS",
ply_color = "blue",
ply_opacity = 0.2,
basemap_style = "gbif-geyser"
)
ss_info |
SeaScape ERDDAP info object, as returned by |
ply |
optional polygon as spatial feature |
date |
date of seascape variable to map. Defaults to most recent date available from |
ss_var |
SeaScape variable. One of |
ply_color |
polygon color. To not plot polygon and just use for initial extent of map set |
ply_opacity |
transparency of polygon Default: |
basemap_style |
any style available from GBIF background tiles. Defaults to |
So far this uses the GBIF background tiles since the ERDDAP WMS only displays in geographic project (EPSG = 4326).
Leaflet leaflet
interactive map widget
ss_info <- get_ss_info()
# map most recent Seascape
map_ss_wms(ss_info)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.