Add color option to ol.style.Icon

This commit is contained in:
Alexandre Brault
2015-11-18 22:11:50 -05:00
parent a34c0e262b
commit c0b6eac0c2
4 changed files with 93 additions and 20 deletions

View File

@@ -6040,6 +6040,7 @@ olx.style.FillOptions.prototype.color;
* anchorOrigin: (ol.style.IconOrigin|undefined),
* anchorXUnits: (ol.style.IconAnchorUnits|undefined),
* anchorYUnits: (ol.style.IconAnchorUnits|undefined),
* color: (ol.Color|undefined),
* crossOrigin: (null|string|undefined),
* img: (Image|HTMLCanvasElement|undefined),
* offset: (Array.<number>|undefined),
@@ -6094,6 +6095,14 @@ olx.style.IconOptions.prototype.anchorXUnits;
olx.style.IconOptions.prototype.anchorYUnits;
/**
* Color to tint the icon. If not specified, the icon will be left as is.
* @type {ol.Color|undefined}
* @api
*/
olx.style.IconOptions.prototype.color;
/**
* The `crossOrigin` attribute for loaded images. Note that you must provide a
* `crossOrigin` value if you are using the WebGL renderer or if you want to