These are the code samples for The Book of OpenLayer3. Feel free to download the source code and contribute to this repository:
This sample shows how we can group layers to take better control.
Code samples for The Book of OpenLayers3 by Antonio Santiago. Licensed under a Creative Commons Attribution 4.0 International License.