mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-01 08:03:30 +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) {
|
if (shownPolygon) {
|
||||||
map.removeLayer(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);
|
shownPolygon = new L.Polygon(a.layer.getConvexHull(), this.options.polygonOptions);
|
||||||
map.addLayer(shownPolygon);
|
map.addLayer(shownPolygon);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user