Add a base map from mapbox to the map widget
1 2 | add_mapbox_basemap(map, token = Sys.getenv("MAPBOX_API_TOKEN"),
style = "mapbox://styles/mapbox/light-v9")
|
map |
map widget created by cartovl |
token |
mapbox api access token |
style |
map style |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.