Support for image or pixel operations

This commit is contained in:
Tim Schaub
2015-06-25 16:20:13 -06:00
parent 23e2fcefef
commit a721ce03c9
3 changed files with 86 additions and 29 deletions
+14 -2
View File
@@ -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),