Remove goog.isNull in animation class

This commit is contained in:
Marc Jansen
2015-09-29 15:21:56 +02:00
parent 7ceb7a439e
commit 54d4434900

View File

@@ -115,7 +115,7 @@ ol.animation.rotate = function(options) {
(sourceRotation - frameState.viewState.rotation) * delta;
frameState.animate = true;
frameState.viewState.rotation += deltaRotation;
if (!goog.isNull(anchor)) {
if (anchor) {
var center = frameState.viewState.center;
ol.coordinate.sub(center, anchor);
ol.coordinate.rotate(center, deltaRotation);