These are the code samples for The Book of OpenLayer3. Feel free to download the source code and contribute to this repository:
The sample shows how we can combine the `ol.interacions.DragBox` and the `ol.interacions.Select` interactions to select those features that intersects with a given vector box: