From 0e92b6622ae900869c4c77b5a2d237ca7e0af95c Mon Sep 17 00:00:00 2001 From: danzel Date: Fri, 1 Feb 2013 10:57:29 +1300 Subject: [PATCH] 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 f36019c5e..ec7b2cdbd 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); }