These are the code samples for The Book of OpenLayer3. Feel free to download the source code and contribute to this repository:
Shows most of the available controls in action. Use the buttons to activate or deactivate controls.