mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 00:24:21 +02:00
Fix clearLayers not unsetting __parent of the markers, preventing them from being re-added. Fixes #99
This commit is contained in:
@@ -209,6 +209,10 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
|
||||
}
|
||||
}
|
||||
|
||||
this.eachLayer(function (marker) {
|
||||
delete marker.__parent;
|
||||
});
|
||||
|
||||
if (this._map) {
|
||||
//Reset _topClusterLevel and the DistanceGrids
|
||||
this._generateInitialClusters();
|
||||
|
||||
Reference in New Issue
Block a user