# OpenLayers.Filter

This class represents an OGC Filter.

Summary

OpenLayers.Filter | This class represents an OGC Filter.
Constructor |
OpenLayers.Filter | This class represents a generic filter.
Functions |
destroy | Remove reference to anything added.
evaluate | Evaluates this filter in a specific context.
clone | Clones this filter.

### Constructor

### OpenLayers.Filter

This class represents a generic filter.

#### Parameters

options | {Object} Optional object whose properties will be set on the instance.

#### Returns

{OpenLayers.Filter}

### Functions

### destroy

> destroy: function()

Remove reference to anything added.

### evaluate

> evaluate: function( | context | )

Evaluates this filter in a specific context. Instances or subclasses are supposed to override this method.

#### Parameters

context | {Object} Context to use in evaluating the filter. If a vector feature is provided, the feature.attributes will be used as context.

#### Returns

{Boolean} The filter applies.

### clone

> clone: function()

Clones this filter. Should be implementted by subclasses.

#### Returns

{OpenLayers.Filter} Clone of this filter.

> destroy: function()

Remove reference to anything added.

> evaluate: function( | context | )

Evaluates this filter in a specific context.

> clone: function()

Clones this filter.
This class represents a generic filter.
Close