Rename rotateWithMap to rotateWithView
This commit is contained in:
@@ -70,7 +70,7 @@ ol.style.Circle = function(opt_options) {
|
||||
|
||||
goog.base(this, {
|
||||
opacity: 1,
|
||||
rotateWithMap: false,
|
||||
rotateWithView: false,
|
||||
rotation: 0,
|
||||
scale: 1,
|
||||
snapToPixel: undefined
|
||||
|
||||
@@ -99,8 +99,8 @@ ol.style.Icon = function(opt_options) {
|
||||
/**
|
||||
* @type {boolean}
|
||||
*/
|
||||
var rotateWithMap = goog.isDef(options.rotateWithMap) ?
|
||||
options.rotateWithMap : false;
|
||||
var rotateWithView = goog.isDef(options.rotateWithView) ?
|
||||
options.rotateWithView : false;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
@@ -117,7 +117,7 @@ ol.style.Icon = function(opt_options) {
|
||||
rotation: rotation,
|
||||
scale: scale,
|
||||
snapToPixel: undefined,
|
||||
rotateWithMap: rotateWithMap
|
||||
rotateWithView: rotateWithView
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
@@ -17,7 +17,7 @@ ol.style.ImageState = {
|
||||
|
||||
/**
|
||||
* @typedef {{opacity: number,
|
||||
* rotateWithMap: boolean,
|
||||
* rotateWithView: boolean,
|
||||
* rotation: number,
|
||||
* scale: number,
|
||||
* snapToPixel: (boolean|undefined)}}
|
||||
@@ -42,7 +42,7 @@ ol.style.Image = function(options) {
|
||||
* @private
|
||||
* @type {boolean}
|
||||
*/
|
||||
this.rotateWithMap_ = options.rotateWithMap;
|
||||
this.rotateWithView_ = options.rotateWithView;
|
||||
|
||||
/**
|
||||
* @private
|
||||
@@ -76,8 +76,8 @@ ol.style.Image.prototype.getOpacity = function() {
|
||||
/**
|
||||
* @return {boolean} Rotate with map.
|
||||
*/
|
||||
ol.style.Image.prototype.getRotateWithMap = function() {
|
||||
return this.rotateWithMap_;
|
||||
ol.style.Image.prototype.getRotateWithView = function() {
|
||||
return this.rotateWithView_;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user