Revert "Do not render in handleDownEvent"

This commit is contained in:
Frédéric Junod
2016-01-19 15:26:10 +01:00
parent 1ad3d4e764
commit eb395894e1
7 changed files with 12 additions and 0 deletions
@@ -72,6 +72,7 @@ ol.interaction.DragRotate.handleDragEvent_ = function(mapBrowserEvent) {
var delta = theta - this.lastAngle_;
var view = map.getView();
var rotation = view.getRotation();
map.render();
ol.interaction.Interaction.rotateWithoutConstraints(
map, view, rotation - delta);
}
@@ -115,6 +116,7 @@ ol.interaction.DragRotate.handleDownEvent_ = function(mapBrowserEvent) {
if (browserEvent.isMouseActionButton() && this.condition_(mapBrowserEvent)) {
var map = mapBrowserEvent.map;
map.getView().setHint(ol.ViewHint.INTERACTING, 1);
map.render();
this.lastAngle_ = undefined;
return true;
} else {