Add "img" option to ol.style.Icon

This commit is contained in:
Éric Lemoine
2014-05-27 16:11:44 +02:00
parent ac934c4564
commit 4981cde729
2 changed files with 44 additions and 9 deletions
+10 -1
View File
@@ -4495,13 +4495,14 @@ olx.style.FillOptions.prototype.color;
* anchorXUnits: (ol.style.IconAnchorUnits|undefined),
* anchorYUnits: (ol.style.IconAnchorUnits|undefined),
* crossOrigin: (null|string|undefined),
* img: (Image|undefined),
* origin: (Array.<number>|undefined),
* scale: (number|undefined),
* snapToPixel: (boolean|undefined),
* rotateWithView: (boolean|undefined),
* rotation: (number|undefined),
* size: (ol.Size|undefined),
* src: string}}
* src: (string|undefined)}}
* @todo api
*/
olx.style.IconOptions;
@@ -4547,6 +4548,14 @@ olx.style.IconOptions.prototype.anchorYUnits;
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.
* @type {Image|undefined}
*/
olx.style.IconOptions.prototype.img;
/**
* The top left corner, which, together with the size, define the
* sub-rectangle to use from the original icon image. Default value