diff --git a/src/ol/style/circlestyle.js b/src/ol/style/circlestyle.js index c698f46247..98b2c0a48b 100644 --- a/src/ol/style/circlestyle.js +++ b/src/ol/style/circlestyle.js @@ -52,6 +52,7 @@ ol.style.Circle = function(opt_options) { anchor: [size / 2, size / 2], imageState: ol.style.ImageState.LOADED, rotation: 0, + scale: 1, size: [size, size], snapToPixel: undefined, subtractViewRotation: false diff --git a/src/ol/style/imagestyle.js b/src/ol/style/imagestyle.js index 9ed3d1b4b4..4491030da5 100644 --- a/src/ol/style/imagestyle.js +++ b/src/ol/style/imagestyle.js @@ -22,6 +22,7 @@ ol.style.ImageState = { * @typedef {{anchor: ol.Pixel, * imageState: ol.style.ImageState, * rotation: number, + * scale: number, * size: ol.Size, * snapToPixel: (boolean|undefined), * subtractViewRotation: boolean}} @@ -57,6 +58,12 @@ ol.style.Image = function(options) { */ this.rotation_ = options.rotation; + /** + * @private + * @type {number} + */ + this.scale_ = options.scale; + /** * @protected * @type {ol.Size} @@ -111,6 +118,14 @@ ol.style.Image.prototype.getRotation = function() { }; +/** + * @return {number} Scale. + */ +ol.style.Image.prototype.getScale = function() { + return this.scale_; +}; + + /** * @return {ol.Size} Size. */