diff --git a/src/objectliterals.jsdoc b/src/objectliterals.jsdoc index a7c0193eef..6b033629e6 100644 --- a/src/objectliterals.jsdoc +++ b/src/objectliterals.jsdoc @@ -797,7 +797,7 @@ /** * @typedef {Object} olx.style.IconOptions - * @property {ol.Pixel|undefined} anchor Anchor. Default value is [0.5, 0.5] + * @property {Array.|undefined} anchor Anchor. Default value is [0.5, 0.5] * (icon center). * @property {ol.style.IconAnchorUnits|undefined} anchorXUnits Units in which the anchor x value is specified. * A value of `'fraction'` indicates the x value is a fraction of the icon. diff --git a/src/ol/style/iconstyle.js b/src/ol/style/iconstyle.js index 7a4e74acdd..5cb250f9ef 100644 --- a/src/ol/style/iconstyle.js +++ b/src/ol/style/iconstyle.js @@ -91,7 +91,7 @@ ol.style.Icon = function(opt_options) { options.anchorYUnits : ol.style.IconAnchorUnits.FRACTION; /** - * @type {ol.Pixel} + * @type {Array.} */ var anchor = goog.isDef(options.anchor) ? options.anchor : [0.5, 0.5]; diff --git a/src/ol/style/imagestyle.js b/src/ol/style/imagestyle.js index 4491030da5..6592f81313 100644 --- a/src/ol/style/imagestyle.js +++ b/src/ol/style/imagestyle.js @@ -19,7 +19,7 @@ ol.style.ImageState = { /** - * @typedef {{anchor: ol.Pixel, + * @typedef {{anchor: Array., * imageState: ol.style.ImageState, * rotation: number, * scale: number, @@ -42,7 +42,7 @@ ol.style.Image = function(options) { /** * @protected - * @type {ol.Pixel} + * @type {Array.} */ this.anchor = options.anchor; @@ -95,7 +95,7 @@ ol.style.Image.prototype.dispatchChangeEvent = function() { /** - * @return {ol.Pixel} Anchor. + * @return {Array.} Anchor. */ ol.style.Image.prototype.getAnchor = function() { return this.anchor;