clear_layer {mapgl}R Documentation

Clear a layer from a map using a proxy

Description

This function allows a layer to be removed from an existing Mapbox GL map using a proxy object.

Usage

clear_layer(proxy, layer_id)

Arguments

proxy

A proxy object created by mapboxgl_proxy or maplibre_proxy.

layer_id

The ID of the layer to be removed.

Value

The updated proxy object.


[Package mapgl version 0.1.4 Index]