Module 21 - Filtering: definitionExpression, FeatureFilter, FeatureEffect
Level 4 路 Interaction 路 馃煛馃煚 路 4 hours 路 Prereq: Module 20
What you'll build
A filter panel with attribute, spatial and temporal criteria that composes cleanly, applies the right mechanism for each situation, restores the layer's original state on teardown, and generates safe SQL from user input.
Why this matters
There are three filtering mechanisms and they are not interchangeable. Choosing wrongly gives you either an unnecessary round trip on every keystroke, or a filter that leaks across views, or a filter that survives your component's unmount and confuses the next user.
The SQL generation part matters too: user input becomes a where clause, and naive
concatenation breaks on O'Brien and on a numeric field with a text value.
The full lesson is part of the Interaction & Widgets level of Web GIS Development with the ArcGIS Maps SDK for JavaScript.