new Colorize(options)
Colorize map or layer
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
ol.filter.ColorizeOptions |
Properties
|
Requires:
- module:ol.filter
Extends
Requires
- module:ol.filter
Methods
-
getActive()
-
Get filter active
- Inherited From:
Returns:
- Type
- bool
-
setActive(b)
-
Activate / deactivate filter
Parameters:
Name Type Description b
bool - 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 Description options
* Properties
Name Type Description color
ol.color style to fill with
operation
string 'enhance' or a CanvasRenderingContext2D.globalCompositeOperation
value
number a [0-1] value to modify the effect value
inner
bool mask inner, default false
-
setValue()
-
Set the filter value
Parameters:
Name Type Description options.color
ol.color style to fill with