Remove goog.isNull in animation class
This commit is contained in:
+1
-1
@@ -115,7 +115,7 @@ ol.animation.rotate = function(options) {
|
|||||||
(sourceRotation - frameState.viewState.rotation) * delta;
|
(sourceRotation - frameState.viewState.rotation) * delta;
|
||||||
frameState.animate = true;
|
frameState.animate = true;
|
||||||
frameState.viewState.rotation += deltaRotation;
|
frameState.viewState.rotation += deltaRotation;
|
||||||
if (!goog.isNull(anchor)) {
|
if (anchor) {
|
||||||
var center = frameState.viewState.center;
|
var center = frameState.viewState.center;
|
||||||
ol.coordinate.sub(center, anchor);
|
ol.coordinate.sub(center, anchor);
|
||||||
ol.coordinate.rotate(center, deltaRotation);
|
ol.coordinate.rotate(center, deltaRotation);
|
||||||
|
|||||||
Reference in New Issue
Block a user