Code samples for The Book of OpenLayers3