diff --git a/src/MarkerClusterGroup.js b/src/MarkerClusterGroup.js index e6635b84a..b631968d4 100644 --- a/src/MarkerClusterGroup.js +++ b/src/MarkerClusterGroup.js @@ -156,6 +156,11 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({ for (i = 0, l = layersArray.length; i < l; i++) { m = layersArray[i]; + + if (!m.__parent) { + continue; + } + this._removeLayer(m, true, true); if (m._icon) {