added possibility to pass mapOptions.layers when creating the map