Filter Strategy

Demonstrates the filter strategy for limiting features passed to the layer.



This example uses a filter strategy to limit the features that are passed to a layer. Features bound for this layer have a when attribute with date values. A filter strategy is constructed with a between filter that limits the span of dates shown. A simple animation cycles through the domain of the when values, calling setFilter on the strategy with an updated filter.

View the filter-strategy.js source to see how this is done