[Pkg-javascript-commits] [leaflet-markercluster] 190/479: Revert first changes as discussed for new approach
Jonas Smedegaard
dr at jones.dk
Thu Oct 16 16:00:28 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 ce81e394c6eccc1879093080b5c11673d680dc30
Author: Alec Winograd <awinograd at gmail.com>
Date: Fri Aug 31 12:24:47 2012 -0700
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 adc47fb..f685d8d 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;
--
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