docs: function (layer) {
  		if (!this.hasLayer(layer)) {
  			return this;
  		}
  		if (layer in this._layers) {
  			layer = this._layers[layer];
  		}
  
  		layer.removeEventParent(this);
  
  		var id = L.stamp(layer);
  
  		if (this._map && this._layers[id]) {
  			// Use the original map removeLayer.
  			this._map._originalRemoveLayer(this._layers[id]);
  		}
  
  		delete this._layers[id];
  
  		return this.fire('layerremove', {layer: layer});
  	}