Class: VectorFilters

VectorFilters()

A VectorFilters collection is a set of conditions used to show or hide features of a vector layer on a map.

Constructor

new VectorFilters()

Since:
  • 2.18.0
Source:

Extends

  • Backbone.Collection

Members

model :Backbone.Model

The class/model that this collection contains.
Type:
  • Backbone.Model
Source:

Methods

featureIsVisible(properties) → {boolean}

This function is used to determine if a feature should be shown or hidden based on the current filters.
Parameters:
Name Type Description
properties Object The properties of the feature to be filtered. (See the 'properties' attribute of Feature#defaults.)
Source:
Returns:
Returns true if the feature passes all of the filters.
Type
boolean