From ce81e394c6eccc1879093080b5c11673d680dc30 Mon Sep 17 00:00:00 2001 From: Alec Winograd Date: Fri, 31 Aug 2012 12:24:47 -0700 Subject: [PATCH] Revert first changes as discussed for new approach Revert "Utilize option to clusterSingleMarkers" This reverts commit 208c85ca7964b962d5eea3034b884e3eaaf5c5e8. Revert "Add option to clusterSingleMarkers" This reverts commit 9ad78ab80949672de89752494261977b613341df. --- src/MarkerClusterGroup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MarkerClusterGroup.js b/src/MarkerClusterGroup.js index adc47fb73..f685d8d82 100644 --- a/src/MarkerClusterGroup.js +++ b/src/MarkerClusterGroup.js @@ -1,3 +1,4 @@ + /* * L.MarkerClusterGroup extends L.FeatureGroup by clustering the markers contained within */ @@ -7,7 +8,6 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({ options: { maxClusterRadius: 80, //A cluster will cover at most this many pixels from its center iconCreateFunction: null, - clusterSingleMarkers: false, spiderfyOnMaxZoom: true, showCoverageOnHover: true, @@ -327,7 +327,7 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({ // any clusters that did not end up being a child of a new cluster, make them a child of a new cluster unclustered.eachObject(function (cluster) { - if (cluster instanceof L.MarkerCluster || (group.options.clusterSingleMarkers && cluster instanceof L.Marker)) { + if (cluster instanceof L.MarkerCluster) { newCluster = new L.MarkerCluster(group, cluster); newCluster._haveGeneratedChildClusters = true;