src/layersupport.js
function (map) {
		var layers = this._layers,
		    toBeReAdded = [],
		    layer;

		for (var id in layers) {
			layer = layers[id];
			if (layer._map) {
				toBeReAdded.push(layer);
				map._originalRemoveLayer(layer);
			}
		}

		return toBeReAdded;
	}
function (map) {
		var layers = this._layers,
		    toBeReAdded = [],
		    layer;

		for (var id in layers) {
			layer = layers[id];
			if (layer._map) {
				toBeReAdded.push(layer);
				map._originalRemoveLayer(layer);
			}
		}

		return toBeReAdded;
	}
function ( map ) { var layers = this . _layers , toBeReAdded = [ ] , layer ; for ( var id in layers ) { layer = layers [ id ] ; if ( layer . _map ) { toBeReAdded . push ( layer ) ; map . _originalRemoveLayer ( layer ) ; } } return toBeReAdded ; }
In case checked in layers have been added to map whereas map is not redirected.
In case checked in layers have been added to map whereas map is not redirected .