Move pixel/coordinate matrices into frame state, remove canRotate
This commit is contained in:
@@ -70,12 +70,8 @@ ol.interaction.DragZoom.prototype.handleDragEnd =
|
||||
goog.asserts.assert(view instanceof ol.View2D);
|
||||
var mapSize = /** @type {ol.Size} */ (map.getSize());
|
||||
view.fitExtent(extent, mapSize);
|
||||
if (map.canRotate()) {
|
||||
// FIXME we don't set the rotation if the map doesn't
|
||||
// support rotation, this will prevent any map using
|
||||
// that view from rotating, which may not be desired
|
||||
view.setRotation(0);
|
||||
}
|
||||
// FIXME we should preserve rotation
|
||||
view.setRotation(0);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user