Class: Colorize

ol.filter. Colorize


new Colorize(options)

Colorize map or layer

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:
Returns:
Type
boolean

setActive(b)

Activate / deactivate filter

Parameters:
Name Type Description
b boolean
Inherited From:

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