Set the filter of a layer
1 | set_filter(map, layer_id, filter)
|
map |
A mapboxer object. |
layer_id |
The ID of the layer whose property should be updated. |
filter |
A filter expression that is applied to the |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.