Revert first changes as discussed for new approach

Revert "Utilize option to clusterSingleMarkers"
This reverts commit 208c85ca79.

Revert "Add option to clusterSingleMarkers"
This reverts commit 9ad78ab809.
This commit is contained in:
Alec Winograd
2012-08-31 12:25:52 -07:00
parent 208c85ca79
commit ce81e394c6
+2 -2
View File
@@ -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;