Don't use withFrozenRendering in ol.interaction.Interaction.rotateWithoutConstraints

This commit is contained in:
Tom Payne
2014-02-27 12:50:41 +01:00
parent dd83952c28
commit e0c8b57e11

View File

@@ -127,16 +127,12 @@ ol.interaction.Interaction.rotateWithoutConstraints =
}));
}
}
goog.asserts.assertInstanceof(view, ol.View2D);
if (goog.isDefAndNotNull(opt_anchor)) {
var center = view.calculateCenterRotate(rotation, opt_anchor);
map.withFrozenRendering(function() {
goog.asserts.assertInstanceof(view, ol.View2D);
view.setCenter(center);
view.setRotation(rotation);
});
} else {
view.setRotation(rotation);
view.setCenter(center);
}
view.setRotation(rotation);
}
};