Skip to contents

This function allows a filter to be added to an existing Mapbox GL or Maplibre GL map using a proxy object.

Usage

set_filter(proxy, layer_id, filter)

Arguments

proxy

A proxy object created by mapboxgl_proxy or maplibre_proxy.

layer_id

The ID of the layer to which the filter will be applied.

filter

The filter expression to apply.

Value

The updated proxy object.