Merge pull request #4457 from alexbrault/colour-icon

Add color option to ol.style.Icon
This commit is contained in:
Andreas Hocevar
2016-01-10 23:19:54 +01:00
4 changed files with 93 additions and 20 deletions

View File

@@ -6080,6 +6080,7 @@ olx.style.FillOptions.prototype.color;
* anchorOrigin: (ol.style.IconOrigin|undefined),
* anchorXUnits: (ol.style.IconAnchorUnits|undefined),
* anchorYUnits: (ol.style.IconAnchorUnits|undefined),
* color: (ol.Color|string|undefined),
* crossOrigin: (null|string|undefined),
* img: (Image|HTMLCanvasElement|undefined),
* offset: (Array.<number>|undefined),
@@ -6134,6 +6135,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|string|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