diff --git a/src/MarkerClusterGroup.js b/src/MarkerClusterGroup.js index cdc3d5dd14..ac806653bb 100644 --- a/src/MarkerClusterGroup.js +++ b/src/MarkerClusterGroup.js @@ -154,7 +154,7 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({ if (!this._map) { for (i = 0, l = layersArray.length; i < l; i++) { - this.removeLayer(layersArray[i]); + this._arraySplice(this._needsClustering, layersArray[i]); } return this; }