View source: R/mapboxgl_basemap.R
add_mapbox_basemap | R Documentation |
Add a basemap from mapbox to the deckgl widget
add_mapbox_basemap( deckgl, style = "mapbox://styles/mapbox/light-v9", token = Sys.getenv("MAPBOX_API_TOKEN") )
deckgl |
deckgl widget |
style |
map style |
token |
mapbox API access token |
deckgl widget
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.