mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 00:24:21 +02:00
Clear our internal cluster layer when we are removed from the map so those layers aren't there when we are re-added. Fixes #211
This commit is contained in:
@@ -443,6 +443,8 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
|
||||
this._featureGroup.onRemove(map);
|
||||
this._nonPointGroup.onRemove(map);
|
||||
|
||||
this._featureGroup.clearLayers();
|
||||
|
||||
this._map = null;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user