undefined may be passed to ol.animation.rotate

This commit is contained in:
Éric Lemoine
2014-02-27 11:00:35 +01:00
committed by Frederic Junod
parent 42adc23e86
commit f9388749d4

View File

@@ -88,7 +88,7 @@ ol.animation.pan = function(options) {
* @todo stability experimental
*/
ol.animation.rotate = function(options) {
var sourceRotation = options.rotation;
var sourceRotation = goog.isDef(options.rotation) ? options.rotation : 0;
var start = goog.isDef(options.start) ? options.start : goog.now();
var duration = goog.isDef(options.duration) ? options.duration : 1000;
var easing = goog.isDef(options.easing) ?