From b7be42776cde73adee4233764be3d159741c1fc0 Mon Sep 17 00:00:00 2001 From: danzel Date: Tue, 24 Jul 2012 17:04:52 +1200 Subject: [PATCH] Trash some other bits of deadness --- src/MarkerClusterGroup.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/MarkerClusterGroup.js b/src/MarkerClusterGroup.js index 76d30ef89..5e1f6ef6f 100644 --- a/src/MarkerClusterGroup.js +++ b/src/MarkerClusterGroup.js @@ -83,8 +83,6 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({ _mergeSplitClusters: function () { if (this._zoom < this._map._zoom) { //Zoom in, split - //Note: Clusters generate new children as needed on a zoom in - //Remove clusters now off screen this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds, this._zoom - this._topClusterLevel._zoom, this._getExpandedVisibleBounds()); @@ -92,12 +90,6 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({ } else if (this._zoom > this._map._zoom) { //Zoom out, merge - //Ensure all of the intermediate zoom levels are generated, generating up happens outside of MarkerCluster - //We also try keep 2 more levels on top if we can so the tree is used more efficiently - while (this._topClusterLevel._zoom > Math.max(this._map.getMinZoom(), this._map._zoom - 2)) { - this._topClusterLevel = this._clusterToMarkerCluster(this._topClusterLevel._childClusters.concat(this._topClusterLevel._markers), this._topClusterLevel._zoom - 1); - } - this._animationZoomOut(this._zoom, this._map._zoom); } },