Update the data of a Mapbox source
set_data(map, data, source_id = NULL, ...)# S3 method for character
set_data(map, data, source_id = NULL, ...)
# S3 method for json
set_data(map, data, source_id = NULL, ...)
# S3 method for data.frame
set_data(map, data, source_id = NULL, lng = "lng",
lat = "lat", ...)
# S3 method for sf
set_data(map, data, source_id, ...)
A mapboxer_proxy object.
A GeoJSON
object, an url pointing to an external GeoJSON
document,
a data frame that contains longitudes and latitudes in separate columns or an sf-object.
The ID of the source whose data should be updated.
unused
The name of the column containing the longitudes.
The name of the column containing the latitudes.