clear_layer.Rd
This function allows a layer to be removed from an existing Mapbox GL map using a proxy object.
clear_layer(proxy, layer_id)
A proxy object created by mapboxgl_proxy or maplibre_proxy.
mapboxgl_proxy
maplibre_proxy
The ID of the layer to be removed.
The updated proxy object.