Support for image or pixel operations
This commit is contained in:
+14
-2
@@ -4500,7 +4500,8 @@ olx.source.ImageVectorOptions.prototype.style;
|
||||
|
||||
/**
|
||||
* @typedef {{sources: Array.<ol.source.Source>,
|
||||
* operations: (Array.<ol.raster.Operation>|undefined)}}
|
||||
* operations: (Array.<ol.raster.Operation>|undefined),
|
||||
* operationType: (ol.raster.OperationType|undefined)}}
|
||||
* @api
|
||||
*/
|
||||
olx.source.RasterOptions;
|
||||
@@ -4515,7 +4516,7 @@ olx.source.RasterOptions.prototype.sources;
|
||||
|
||||
|
||||
/**
|
||||
* Pixel operations. Operations will be called with pixels from input sources
|
||||
* Pixel operations. Operations will be called with data from input sources
|
||||
* and the final output will be assigned to the raster source.
|
||||
* @type {Array.<ol.raster.Operation>|undefined}
|
||||
* @api
|
||||
@@ -4523,6 +4524,17 @@ olx.source.RasterOptions.prototype.sources;
|
||||
olx.source.RasterOptions.prototype.operations;
|
||||
|
||||
|
||||
/**
|
||||
* 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.
|
||||
* @type {ol.raster.OperationType|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.source.RasterOptions.prototype.operationType;
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {{attributions: (Array.<ol.Attribution>|undefined),
|
||||
* crossOrigin: (null|string|undefined),
|
||||
|
||||
Reference in New Issue
Block a user