From 92a34d380b9211f044e88fa2aa495026876fbc1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Thu, 21 Nov 2013 14:40:18 +0100 Subject: [PATCH] Make setting image rotation and subtractViewRotation optional --- src/objectliterals.jsdoc | 4 ++-- src/ol/style/imagestyle.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/objectliterals.jsdoc b/src/objectliterals.jsdoc index 28ade9fae5..977aecfe7e 100644 --- a/src/objectliterals.jsdoc +++ b/src/objectliterals.jsdoc @@ -628,11 +628,11 @@ * @typedef {Object} ol.style.ImageOptions * @property {ol.Pixel} anchor Anchor. * @property {HTMLCanvasElement|HTMLVideoElement|Image} image Image. - * @property {number} rotation Rotation. + * @property {number|undefined} rotation Rotation. * @property {ol.Size} size Image size in pixel. * @property {boolean|undefined} snapToPixel Whether the image should be * snapped to the closed pixel at rendering time. - * @property {boolean} subtractViewRotation Whether the image should be + * @property {boolean|undefined} subtractViewRotation Whether the image should be * rotated with the view or not. */ diff --git a/src/ol/style/imagestyle.js b/src/ol/style/imagestyle.js index 4f9af57ce5..c4ea5ecc95 100644 --- a/src/ol/style/imagestyle.js +++ b/src/ol/style/imagestyle.js @@ -21,7 +21,7 @@ ol.style.Image = function(options) { this.image = options.image; /** - * @type {number} + * @type {number|undefined} */ this.rotation = options.rotation; @@ -36,7 +36,7 @@ ol.style.Image = function(options) { this.snapToPixel = options.snapToPixel; /** - * @type {boolean} + * @type {boolean|undefined} */ this.subtractViewRotation = options.subtractViewRotation;