Replace subtractViewRotation with rotateWithMap
This commit is contained in:
+16
-16
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user