- Source:
Classes
Methods
(static) colorswap(event, beforeColors, afterColors, varianceopt)
An event handler for ol.layer.Layer#postcompose to re-render the layer in with colors swapped
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
event |
ol.render.Event | The event data from the ol.layer.Layer#postcompose event | ||
beforeColors |
Array.<Array.<number>> | The RGB values of the colors to replace | ||
afterColors |
Array.<Array.<number>> | The RGB values of the replacement colors | ||
variance |
number |
<optional> |
0 | The variance for considering RGB values equal |
- Source:
(static) grayscale(event)
An event handler for ol.layer.Layer#postcompose to re-render the layer in grayscale
Parameters:
| Name | Type | Description |
|---|---|---|
event |
ol.render.Event | The event data from the ol.layer.Layer#postcompose event |
- Source: