Description Usage Arguments See Also
View source: R/layers_update.R
Update the data of a Mapbox source
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | set_data(map, data, source_id = NULL, ...)
## S3 method for class 'character'
set_data(map, data, source_id = NULL, ...)
## S3 method for class 'json'
set_data(map, data, source_id = NULL, ...)
## S3 method for class 'data.frame'
set_data(map, data, source_id = NULL, lng = "lng",
lat = "lat", ...)
## S3 method for class 'sf'
set_data(map, data, source_id, ...)
|
map |
A mapboxer_proxy object. |
data |
A |
source_id |
The ID of the source whose data should be updated. |
... |
unused |
lng |
The name of the column containing the longitudes. |
lat |
The name of the column containing the latitudes. |
df_geojson
sf_geojson
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.