angular.module('anol.map')

.provider('MapService', [function() {
    var _view;

    var buildMapConfig = function(layers, controls) {
        var map = new ol.Map(angular.extend({}, {
            controls: controls,
            layers: layers
        }));
        map.setView(_view);
        return map;
    };

    this.addView = function(view) {
        _view = view;
    };

    this.$get = ['LayersService', 'ControlsService', function(LayersService, ControlsService) {
        var MapService = function() {
            this.map = undefined;
        };
        MapService.prototype.getMap = function() {
            if(angular.isUndefined(this.map)) {
                this.map = buildMapConfig(
                    LayersService.layers,
                    ControlsService.controls
                );
                LayersService.registerMap(this.map);
            }
            return this.map;
        };
        return new MapService();
    }];
}]);

angular.module('anol.map')

.provider('MapService', [function() {
    var _view;

    var buildMapConfig = function(layers, controls) {
        var map = new ol.Map(angular.extend({}, {
            'controls': controls
        }));
        map.setView(_view);
        angular.forEach(layers, function(layer) {
            map.addLayer(layer);
        });
        return map;
    };

    this.addView = function(view) {
        _view = view;
    };

    this.$get = ['LayersService', 'ControlsService', function(LayersService, ControlsService) {
        var MapService = function() {
            this.map = undefined;
        };
        MapService.prototype.getMap = function() {
            if(angular.isUndefined(this.map)) {
                this.map = buildMapConfig(
                    LayersService.layers,
                    ControlsService.controls
                );
                LayersService.registerMap(this.map);
            }
            return this.map;
        };
        return new MapService();
    }];
}]);

--- 
+++ 
@@ -5,12 +5,10 @@
 
     var buildMapConfig = function(layers, controls) {
         var map = new ol.Map(angular.extend({}, {
-            'controls': controls
+            controls: controls,
+            layers: layers
         }));
         map.setView(_view);
-        angular.forEach(layers, function(layer) {
-            map.addLayer(layer);
-        });
         return map;
     };
 
Add layers to map options
