Add ol.RotationConstraint.disable
This commit is contained in:
@@ -10,6 +10,20 @@ goog.require('goog.math');
|
||||
ol.RotationConstraintType;
|
||||
|
||||
|
||||
/**
|
||||
* @param {number|undefined} rotation Rotation.
|
||||
* @param {number} delta Delta.
|
||||
* @return {number|undefined} Rotation.
|
||||
*/
|
||||
ol.RotationConstraint.disable = function(rotation, delta) {
|
||||
if (goog.isDef(rotation)) {
|
||||
return 0;
|
||||
} else {
|
||||
return undefined;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {number|undefined} rotation Rotation.
|
||||
* @param {number} delta Delta.
|
||||
|
||||
Reference in New Issue
Block a user