Skip to contents

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.