src/layersupport.js
function (layerGroup) {
		if (layerGroup._proxyMcgLayerSupportGroup === undefined ||
			layerGroup._proxyMcgLayerSupportGroup !== this) {

			return;
		}

		delete layerGroup._proxyMcgLayerSupportGroup;
		layerGroup.addLayer = layerGroup._originalAddLayer;
		layerGroup.removeLayer = layerGroup._originalRemoveLayer;
		layerGroup.onAdd = layerGroup._originalOnAdd;
		layerGroup.onRemove = layerGroup._originalOnRemove;

		var id = L.stamp(layerGroup);
		delete this._proxyLayerGroups[id];
		delete this._proxyLayerGroupsNeedRemoving[id];

		this._removeFromOwnMap(layerGroup);
	}
function (layerGroup) {
		if (layerGroup._proxyMcgLayerSupportGroup === undefined ||
			layerGroup._proxyMcgLayerSupportGroup !== this) {

			return;
		}

		delete layerGroup._proxyMcgLayerSupportGroup;
		layerGroup.addLayer = layerGroup._originalAddLayer;
		layerGroup.removeLayer = layerGroup._originalRemoveLayer;
		layerGroup.onAdd = layerGroup._originalOnAdd;
		layerGroup.onRemove = layerGroup._originalOnRemove;

		var id = L.stamp(layerGroup);
		delete this._proxyLayerGroups[id];
		delete this._proxyLayerGroupsNeedRemoving[id];

		this._removeFromOwnMap(layerGroup);
	}
function ( layerGroup ) { if ( layerGroup . _proxyMcgLayerSupportGroup === undefined || layerGroup . _proxyMcgLayerSupportGroup !== this ) { return ; } delete layerGroup . _proxyMcgLayerSupportGroup ; layerGroup . addLayer = layerGroup . _originalAddLayer ; layerGroup . removeLayer = layerGroup . _originalRemoveLayer ; layerGroup . onAdd = layerGroup . _originalOnAdd ; layerGroup . onRemove = layerGroup . _originalOnRemove ; var id = L . stamp ( layerGroup ) ; delete this . _proxyLayerGroups [ id ] ; delete this . _proxyLayerGroupsNeedRemoving [ id ] ; this . _removeFromOwnMap ( layerGroup ) ; }
Restore the normal LayerGroup behaviour. Removal and check out of contained markers must be taken care of externally.
Restore the normal LayerGroup behaviour . Removal and check out of contained markers must be taken care of externally .