Boilerplate openlayers code for map