Adding Checkbox Filters to Your Map: Nested, Inclusive, and Exclusive Filtering

preview_player
Показать описание
Creating filters can be trickier than it seems! In this video I go over a variety of ways to add filters and give some code for easily doing it yourself.

Some other resources mentioned:

00:00 What are checkbox filters?
01:00 Exclusive vs Inclusive Filters
02:05 Creating the page and pseudocode comments
02:55 Structuring our data
05:40 Adding a custom control and checkboxes
08:40 Checkbox relationship interactivity
12:10 Hiding and showing features
15:25 Sources and Layers
Рекомендации по теме
Комментарии
Автор

Great info, thanks for sharing!

I am after similar behavior, but, instead of radius scale to zero, I try to change my layer layout visibility. However, the method setLayoutProperty is not defined on the map 😢
Is that something wrong that I am doing ?

MichaelKlimenko
Автор

Huummmm. . . Watching to see if this can do more than point/dots.
Want to dis/enable dots, regions, etc (overlays which could be semi-transparent images)

nemesis_