clear_layer | R Documentation |
This function allows a layer to be removed from an existing Mapbox GL map using a proxy object.
clear_layer(proxy, layer_id)
proxy |
A proxy object created by |
layer_id |
The ID of the layer to be removed. |
The updated proxy object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.