[Pkg-javascript-commits] [leaflet-markercluster] 96/479: Trash some other bits of deadness
Jonas Smedegaard
dr at jones.dk
Thu Oct 16 16:00:15 UTC 2014
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository leaflet-markercluster.
commit b7be42776cde73adee4233764be3d159741c1fc0
Author: danzel <danzel at localhost.geek.nz>
Date: Tue Jul 24 17:04:52 2012 +1200
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 76d30ef..5e1f6ef 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);
}
},
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/leaflet-markercluster.git
More information about the Pkg-javascript-commits
mailing list