addGIBS | R Documentation |
A leaflet plugin for NASA EOSDIS GIBS imagery integration. 154 products are available. The date can be set dynamically for multi-temporal products. No-data pixels of MODIS Multiband Imagery can be made transparent.
addGIBS(
map,
layers = NULL,
group = NULL,
dates = NULL,
opacity = 0.5,
transparent = TRUE
)
map |
a map widget object created from |
layers |
A character vector of GIBS-layers. See |
group |
the name of the group the newly created layers should belong to
(for |
dates |
Date object. If multiple |
opacity |
Numeric value determining the opacity. If multiple
|
transparent |
Should the layer be transparent. If multiple |
the new map
object
https://github.com/aparshin/leaflet-GIBS
Other GIBS Functions:
setDate()
,
setTransparent()
library(leaflet)
library(leaflet.extras2)
layers <- gibs_layers$title[c(35, 128, 185)]
leaflet() %>%
addTiles() %>%
setView(9, 50, 4) %>%
addGIBS(
layers = layers,
dates = Sys.Date() - 1,
group = layers
) %>%
addLayersControl(overlayGroups = layers)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.