mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
Don't show the coverage of spiderfied MarkerClusters because it will be wrong. Fixes #95
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user