Don't use withFrozenRendering in ol.interaction.Interaction.rotateWithoutConstraints
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user