Do not draw a rotated box, in dragbox/dragzoom

Use pixels to draw a straight box, perserving rotation while zooming
This commit is contained in:
Antoine Abt
2014-01-03 11:51:45 +01:00
parent 47d9fd354b
commit 3461b026b6
3 changed files with 34 additions and 27 deletions

View File

@@ -52,7 +52,5 @@ ol.interaction.DragZoom.prototype.onBoxEnd = function() {
var view = this.getMap().getView().getView2D();
view.fitExtent(this.getGeometry().getExtent(), this.getMap().getSize());
// FIXME we should preserve rotation
view.setRotation(0);
}, this));
};