Don't show the coverage of spiderfied MarkerClusters because it will be wrong. Fixes #95

This commit is contained in:
danzel
2013-02-01 10:57:29 +13:00
parent ab625e1af8
commit 0e92b6622a
+1 -1
View File
@@ -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);
}