mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 00:24:21 +02:00
Remove __layer property on markers that are removed, otherwise on re-adding them we'll assume they are already added. Woops!
This commit is contained in:
@@ -120,6 +120,9 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
|
||||
L.FeatureGroup.prototype.removeLayer.call(this, layer);
|
||||
layer.setOpacity(1);
|
||||
}
|
||||
|
||||
delete layer.__parent;
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user