set_source {mapgl} | R Documentation |
Set source of a map layer
Description
Set source of a map layer
Usage
set_source(map, layer_id = NULL, source, layer = NULL)
Arguments
map |
A map object created by the |
layer_id |
The ID of the layer to update. |
source |
An sf object (which will be converted to a GeoJSON source). |
layer |
Deprecated. Use |
Value
The updated map object.
[Package mapgl version 0.3.2 Index]