Add "origin" option to ol.style.Image

This commit is contained in:
Éric Lemoine
2014-05-05 09:30:35 +02:00
parent 29d71b34b2
commit a62fd53d36
4 changed files with 33 additions and 0 deletions

View File

@@ -4365,6 +4365,7 @@ olx.style.FillOptions.prototype.color;
* anchorXUnits: (ol.style.IconAnchorUnits|undefined),
* anchorYUnits: (ol.style.IconAnchorUnits|undefined),
* crossOrigin: (null|string|undefined),
* origin: (Array.<number>|undefined),
* scale: (number|undefined),
* rotateWithView: (boolean|undefined),
* rotation: (number|undefined),
@@ -4415,6 +4416,15 @@ olx.style.IconOptions.prototype.anchorYUnits;
olx.style.IconOptions.prototype.crossOrigin;
/**
* The top left corner, which, together with the size, define the
* sub-rectangle to use from the original icon image. Default value
* is `[0, 0]`.
* @type {Array.<number>|undefined}
*/
olx.style.IconOptions.prototype.origin;
/**
* Scale.
* @type {number|undefined}