clear_legend: Clear legend(s) from a map in a proxy session

View source: R/legends.R

clear_legendR Documentation

Clear legend(s) from a map in a proxy session

Description

Clear legend(s) from a map in a proxy session

Usage

clear_legend(map, legend_ids = NULL)

Arguments

map

A map object created by the mapboxgl_proxy or maplibre_proxy function.

legend_ids

Optional. A character vector of legend IDs to clear. If not provided, all legends will be cleared.

Value

The updated map object with the specified legend(s) cleared.


mapgl documentation built on June 8, 2025, 1:57 p.m.