View source: R/mapboxgl-stuff.R
Add a layer using the mapbox style specification to the map
1 | add_mapbox_layer(map, source_id, style, id = "mapbox-layer")
|
map |
map widget created by cartovl |
source_id |
The id of the source to get data from. |
style |
style conforming to the mapbox style specification |
id |
unique id of the style, will be added to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.