mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-04-27 23:25:12 +00:00
Fix heatmap remnants: clear nodesLayer and animLayer on scrub
Previous fix only removed markers tracked in nodeMarkers object, missing glow circles and other elements added directly to nodesLayer.
This commit is contained in:
+2
-3
@@ -835,9 +835,8 @@
|
||||
}
|
||||
|
||||
function clearNodeMarkers() {
|
||||
for (const [key, marker] of Object.entries(nodeMarkers)) {
|
||||
if (map) map.removeLayer(marker);
|
||||
}
|
||||
if (nodesLayer) nodesLayer.clearLayers();
|
||||
if (animLayer) animLayer.clearLayers();
|
||||
nodeMarkers = {};
|
||||
nodeData = {};
|
||||
nodeActivity = {};
|
||||
|
||||
Reference in New Issue
Block a user