addGIBS {leaflet.extras2} | R Documentation |
Add GIBS Layers
Description
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.
Usage
addGIBS(
map,
layers = NULL,
group = NULL,
dates = NULL,
opacity = 0.5,
transparent = TRUE
)
Arguments
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 |
Value
the new map
object
References
https://github.com/aparshin/leaflet-GIBS
See Also
Other GIBS Functions:
setDate()
,
setTransparent()
Examples
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)