Class: Base

ol.filter. Base

Abstract base class; normally only used for creating subclasses and not instantiated in apps.
Used to create filters
Use ol_Map#addFilter, ol_Map#removeFilter or ol_Map#getFilters to handle filters on a map. Use ol.layer.Base#addFilter, ol.layer.Base#removeFilter or ol.layer.Base#getFilters to handle filters on layers.


new Base(options)

Parameters:
Name Type Description
options Object

Extend ol_control_Control options.

Properties
Name Type Argument Description
active boolean <optional>

Extends

  • ol.Object

Methods


getActive()

Get filter active

Returns:
Type
boolean

setActive(b)

Activate / deactivate filter

Parameters:
Name Type Description
b boolean