Class: CanvasFilter

ol.filter. CanvasFilter

Add a canvas Context2D filter to a layer


new CanvasFilter(options)

Parameters:
Name Type Description
options CanvasFilterOptions
See:
Requires:
  • module:ol.filter

Extends

Requires

  • module:ol.filter

Methods


addSVGFilter(url)

Add a new svg filter

Parameters:
Name Type Description
url string | ol.ext.SVGFilter

IRI pointing to an SVG filter element


getActive()

Get filter active

Inherited From:
Overrides:
Returns:
Type
boolean

removeSVGFilter(url)

Remove a svg filter

Parameters:
Name Type Description
url string | ol.ext.SVGFilter

IRI pointing to an SVG filter element


setActive(b)

Activate / deactivate filter

Parameters:
Name Type Description
b boolean
Inherited From:
Overrides: