Strategy for limiting features that get added to a layer by evaluating a filter. The strategy maintains a cache of all features until removeFeatures is called on the layer.
| OpenLayers. | Strategy for limiting features that get added to a layer by evaluating a filter. |
| Properties | |
| filter | {OpenLayers.Filter} Filter for limiting features sent to the layer. |
| Constructor | |
| OpenLayers. | Create a new filter strategy. |
| Functions | |
| activate | Activate the strategy. |
| deactivate | Deactivate the strategy. |
| setFilter | Update the filter for this strategy. |
{OpenLayers.Filter} Filter for limiting features sent to the layer. Use the setFilter method to update this filter after construction.
setFilter: function( filter )
Update the filter for this strategy. This will re-evaluate any features on the layer and in the cache. Only features for which filter.evalute(feature) returns true will be added to the layer. Others will be cached by the strategy.
| filter | {OpenLayers.Filter} A filter for evaluating features. |
Activate the strategy.
activate: function()
Deactivate the strategy.
deactivate: function()
Update the filter for this strategy.
setFilter: function( filter )