Remove extra map.render() calls from drag rotate interaction
This commit is contained in:
committed by
Bart van den Eijnden
parent
5d461fa0e7
commit
92e83aebe0
@@ -72,7 +72,6 @@ ol.interaction.DragRotate.handleDragEvent_ = function(mapBrowserEvent) {
|
|||||||
var delta = theta - this.lastAngle_;
|
var delta = theta - this.lastAngle_;
|
||||||
var view = map.getView();
|
var view = map.getView();
|
||||||
var rotation = view.getRotation();
|
var rotation = view.getRotation();
|
||||||
map.render();
|
|
||||||
ol.interaction.Interaction.rotateWithoutConstraints(
|
ol.interaction.Interaction.rotateWithoutConstraints(
|
||||||
map, view, rotation - delta);
|
map, view, rotation - delta);
|
||||||
}
|
}
|
||||||
@@ -116,7 +115,6 @@ ol.interaction.DragRotate.handleDownEvent_ = function(mapBrowserEvent) {
|
|||||||
this.condition_(mapBrowserEvent)) {
|
this.condition_(mapBrowserEvent)) {
|
||||||
var map = mapBrowserEvent.map;
|
var map = mapBrowserEvent.map;
|
||||||
map.getView().setHint(ol.View.Hint.INTERACTING, 1);
|
map.getView().setHint(ol.View.Hint.INTERACTING, 1);
|
||||||
map.render();
|
|
||||||
this.lastAngle_ = undefined;
|
this.lastAngle_ = undefined;
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user