OpenLayers Filter Strategy Example

# Filter Strategy

filter, strategy, strategies, kml, advanced

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

time span (seconds)

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