| stac_map | R Documentation |
Creates an interactive 'leaflet' map showing the spatial footprints of
STAC items returned by stac_search() or stac_items(). Requires the
'leaflet' and 'sf' packages to be installed.
stac_map(items)
items |
A tibble::tibble of STAC items as returned by
|
A leaflet htmlwidget object.
items <- stac_search(
url = "https://earth-search.aws.element84.com/v1",
collections = "sentinel-2-l2a",
bbox = c(-84.5, 38.0, -84.3, 38.2),
limit = 5
)
stac_map(items)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.