Add ol.RotationConstraint.disable

This commit is contained in:
Tom Payne
2014-01-27 14:49:08 +01:00
parent 5ff2fcacb8
commit 0a5ab24a0c

View File

@@ -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.