clear_layer: Clear a layer from a map using a proxy

View source: R/shiny.R

clear_layerR 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.


mapgl documentation built on Nov. 1, 2024, 5:08 p.m.