A source that transforms data from any number of input sources using an
module:ol/source/Raster~Operation function to transform input pixel values into
output pixel values.
Raster operation.
The operation will be called with data from input sources
and the output will be assigned to the raster source.
lib
Object
Functions that will be made available to operations run in a worker.
threads
number
By default, operations will be run in a single worker thread.
To avoid using workers altogether, set threads: 0. For pixel operations, operations can
be run in multiple worker threads. Note that there is additional overhead in
transferring data to multiple workers, and that depending on the user's
system, it may not be possible to parallelize the work.
Operation type.
Supported values are 'pixel' and 'image'. By default,
'pixel' operations are assumed, and operations will be called with an
array of pixels from input sources. If set to 'image', operations will
be called with an array of ImageData objects from input sources.