[Pkg-javascript-commits] [leaflet-markercluster] 314/479: Don't show the coverage of spiderfied MarkerClusters because it will be wrong. Fixes #95

Jonas Smedegaard dr at jones.dk
Thu Oct 16 16:00:46 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 0e92b6622ae900869c4c77b5a2d237ca7e0af95c
Author: danzel <danzel at localhost.geek.nz>
Date:   Fri Feb 1 10:57:29 2013 +1300

    Don't show the coverage of spiderfied MarkerClusters because it will be wrong. Fixes #95
---
 src/MarkerClusterGroup.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/MarkerClusterGroup.js b/src/MarkerClusterGroup.js
index f36019c..ec7b2cd 100644
--- a/src/MarkerClusterGroup.js
+++ b/src/MarkerClusterGroup.js
@@ -501,7 +501,7 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
 				if (shownPolygon) {
 					map.removeLayer(shownPolygon);
 				}
-				if (a.layer.getChildCount() > 2) {
+				if (a.layer.getChildCount() > 2 && a.layer !== this._spiderfied) {
 					shownPolygon = new L.Polygon(a.layer.getConvexHull(), this.options.polygonOptions);
 					map.addLayer(shownPolygon);
 				}

-- 
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