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

Extend _ol_control_Control_ options.

Properties
Name Type Description
active bool

Extends

  • ol.Object

Methods


getActive()

Get filter active

Returns:
Type
bool

setActive(b)

Activate / deactivate filter

Parameters:
Name Type Description
b bool