Accept HTMLCanvasElement for an icon's img

This commit is contained in:
Andreas Hocevar
2015-12-04 13:40:53 +01:00
parent 952a282756
commit abb680d28f
5 changed files with 103 additions and 9 deletions

View File

@@ -6005,7 +6005,7 @@ olx.style.FillOptions.prototype.color;
* anchorXUnits: (ol.style.IconAnchorUnits|undefined),
* anchorYUnits: (ol.style.IconAnchorUnits|undefined),
* crossOrigin: (null|string|undefined),
* img: (Image|undefined),
* img: (Image|HTMLCanvasElement|undefined),
* offset: (Array.<number>|undefined),
* offsetOrigin: (ol.style.IconOrigin|undefined),
* opacity: (number|undefined),
@@ -6074,7 +6074,7 @@ olx.style.IconOptions.prototype.crossOrigin;
* Image object for the icon. If the `src` option is not provided then the
* provided image must already be loaded. And in that case, it is required
* to provide the size of the image, with the `imgSize` option.
* @type {Image|undefined}
* @type {Image|HTMLCanvasElement|undefined}
* @api
*/
olx.style.IconOptions.prototype.img;