set_source | R Documentation |
Set source of a map layer
set_source(map, layer, source)
map |
A map object created by the |
layer |
The ID of the layer to update. |
source |
An sf object (which will be converted to a GeoJSON source). |
The updated map object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.