mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 00:25:06 +02:00
removeLayer works now. addLayer still needs fixing to be clustering aware
This commit is contained in:
@@ -119,6 +119,10 @@ L.MarkerCluster = L.Marker.extend({
|
||||
//Check our children
|
||||
for (i = markers.length - 1; i >= 0; i--) {
|
||||
if (markers[i] == layer) {
|
||||
if (markers[i]._icon) {
|
||||
L.FeatureGroup.prototype.removeLayer.call(group, markers[i]);
|
||||
}
|
||||
|
||||
markers.splice(i, 1);
|
||||
this._recalculateBounds();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user