src/layersupport.js
function (layer) {
		var id = this.getLayerId(layer);

		this._layers[id] = layer;

		if (this._map) {
			this._proxyMcgLayerSupportGroup.addLayer(layer);
		} else {
			this._proxyMcgLayerSupportGroup.checkIn(layer);
		}

		return this;
	}
function (layer) {
		var id = this.getLayerId(layer);

		this._layers[id] = layer;

		if (this._map) {
			this._proxyMcgLayerSupportGroup.addLayer(layer);
		} else {
			this._proxyMcgLayerSupportGroup.checkIn(layer);
		}

		return this;
	}
function ( layer ) { var id = this . getLayerId ( layer ) ; this . _layers [ id ] = layer ; if ( this . _map ) { this . _proxyMcgLayerSupportGroup . addLayer ( layer ) ; } else { this . _proxyMcgLayerSupportGroup . checkIn ( layer ) ; } return this ; }
Re-implement to redirect addLayer to Layer Support group instead of map.
Re - implement to redirect addLayer to Layer Support group instead of map .