Class: Colorize

ol.filter. Colorize

Colorize map or layer


new Colorize(options)

Parameters:
Name Type Description
options FilterColorizeOptions
Author:
  • Thomas Tilak https://github.com/thhomas
  • Jean-Marc Viglino https://github.com/viglino
Requires:
  • module:ol.filter

Extends

Requires

  • module:ol.filter

Methods


getActive()

Get filter active

Inherited From:
Overrides:
Returns:
Type
boolean

setActive(b)

Activate / deactivate filter

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

setColor()

Set the color value

Parameters:
Name Type Description
options.value number

a [0-1] value to modify the effect value


setFilter( [options])

Set options to the filter

Parameters:
Name Type Argument Description
options FilterColorizeOptions <optional>

setValue()

Set the filter value

Parameters:
Name Type Description
options.color ol.Color

style to fill with