ALKMaps.Filter.Logical

This class represents ogc:And, ogc:Or and ogc:Not rules.

Inherits from

Summary
ALKMaps.Filter.LogicalThis class represents ogc:And, ogc:Or and ogc:Not rules.
Properties
filters{Array(ALKMaps.Filter)} Child filters for this filter.
type
Constructor
ALKMaps.Filter.LogicalCreates a logical filter (And, Or, Not).
Functions
destroyRemove reference to child filters.
evaluateEvaluates this filter in a specific context.
cloneClones this filter.

Properties

filters

{Array(ALKMaps.Filter)} Child filters for this filter.

type

{String} type of logical operator.  Available types are

  • ALKMaps.Filter.Logical.AND = “&&”;
  • ALKMaps.Filter.Logical.OR = “||”;
  • ALKMaps.Filter.Logical.NOT = “!”;

Constructor

ALKMaps.Filter.Logical

Creates a logical filter (And, Or, Not).

Parameters

options{Object} An optional object with properties to set on the filter.

Returns

{ALKMaps.Filter.Logical}

Functions

destroy

destroy: function()

Remove reference to child filters.

evaluate

evaluate: function(context)

Evaluates this filter in a specific context.

Parameters

context{Object} Context to use in evaluating the filter.  A vector feature may also be provided to evaluate feature attributes in comparison filters or geometries in spatial filters.

Returns

{Boolean} The filter applies.

clone

clone: function()

Clones this filter.

Returns

{ALKMaps.Filter.Logical} Clone of this filter.

This class represents an OGC Filter.
destroy: function()
Remove reference to child filters.
evaluate: function(context)
Evaluates this filter in a specific context.
clone: function()
Clones this filter.
Creates a logical filter (And, Or, Not).
Close