Replace subtractViewRotation with rotateWithMap

This commit is contained in:
Tom Payne
2014-02-21 11:21:20 +01:00
parent fe159aa7fa
commit 27c5ab0312
3 changed files with 25 additions and 19 deletions
+16 -16
View File
@@ -17,10 +17,10 @@ ol.style.ImageState = {
/**
* @typedef {{opacity: number,
* rotateWithMap: boolean,
* rotation: number,
* scale: number,
* snapToPixel: (boolean|undefined),
* subtractViewRotation: boolean}}
* snapToPixel: (boolean|undefined)}}
*/
ol.style.ImageOptions;
@@ -38,6 +38,12 @@ ol.style.Image = function(options) {
*/
this.opacity_ = options.opacity;
/**
* @private
* @type {boolean}
*/
this.rotateWithMap_ = options.rotateWithMap;
/**
* @private
* @type {number}
@@ -56,12 +62,6 @@ ol.style.Image = function(options) {
*/
this.snapToPixel_ = options.snapToPixel;
/**
* @private
* @type {boolean|undefined}
*/
this.subtractViewRotation_ = options.subtractViewRotation;
};
@@ -73,6 +73,14 @@ ol.style.Image.prototype.getOpacity = function() {
};
/**
* @return {boolean} Rotate with map.
*/
ol.style.Image.prototype.getRotateWithMap = function() {
return this.rotateWithMap_;
};
/**
* @return {number} Rotation.
*/
@@ -97,14 +105,6 @@ ol.style.Image.prototype.getSnapToPixel = function() {
};
/**
* @return {boolean|undefined} Subtract view rotation?
*/
ol.style.Image.prototype.getSubtractViewRotation = function() {
return this.subtractViewRotation_;
};
/**
* @return {Array.<number>} Anchor.
*/