This class represents a spatial filter. Currently implemented: BBOX, DWithin and Intersects
ALKMaps. | This class represents a spatial filter. |
Properties | |
type | {String} Type of spatial filter. |
property | {String} Name of the context property to compare. |
value | {ALKMaps.Bounds || ALKMaps.Geometry} The bounds or geometry to be used by the filter. |
distance | {Number} The distance to use in a DWithin spatial filter. |
distanceUnits | {String} The units to use for the distance, e.g. |
Constructor | |
ALKMaps. | Creates a spatial filter. |
Functions | |
evaluate | Evaluates this filter for a specific feature. |
clone | Clones this filter. |
{ALKMaps.Bounds || ALKMaps.Geometry} The bounds or geometry to be used by the filter. Use bounds for BBOX filters and geometry for INTERSECTS or DWITHIN filters.
evaluate: function( feature )
Evaluates this filter for a specific feature.
feature | {ALKMaps.Feature.Vector} feature to apply the filter to. |
{Boolean} The feature meets filter criteria.
Evaluates this filter for a specific feature.
evaluate: function( feature )
Clones this filter.
clone: function()