From 998259042b5e1e6311f7662ede3805bcf539e051 Mon Sep 17 00:00:00 2001 From: Anton Roslund Date: Sun, 28 Sep 2025 20:26:19 +0200 Subject: [PATCH] Add layergroup for LongFast --- src/public/index.html | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/public/index.html b/src/public/index.html index 95b5283..c7c74ff 100644 --- a/src/public/index.html +++ b/src/public/index.html @@ -2745,6 +2745,7 @@ }); var nodesBackboneLayerGroup = new L.LayerGroup(); var nodesMediumFastLayerGroup = new L.LayerGroup(); + var nodesLongFastLayerGroup = new L.LayerGroup(); var waypointsLayerGroup = new L.LayerGroup(); var nodePositionHistoryLayerGroup = new L.LayerGroup(); var traceroutesLayerGroup = new L.LayerGroup(); @@ -2788,8 +2789,8 @@ div.style.backgroundColor = 'white'; div.style.padding = '12px'; div.innerHTML = `
Legend
` - + `
Medium Fast
` - + `
Long Fast
` + + `
MediumFast
` + + `
LongFast
` + `
Offline Too Long
`; return div; }; @@ -2816,7 +2817,8 @@ "All": nodesLayerGroup, "Routers": nodesRouterLayerGroup, "Backbone": nodesBackboneLayerGroup, - "Medium Fast": nodesMediumFastLayerGroup, + "MediumFast": nodesMediumFastLayerGroup, + "LongFast": nodesLongFastLayerGroup, "Clustered": nodesClusteredLayerGroup, "None": new L.LayerGroup(), }, @@ -2997,6 +2999,7 @@ nodesRouterLayerGroup.clearLayers(); nodesBackboneLayerGroup.clearLayers(); nodesMediumFastLayerGroup.clearLayers(); + nodesLongFastLayerGroup.clearLayers(); } function clearAllNeighbours() { @@ -3597,6 +3600,11 @@ nodesMediumFastLayerGroup.addLayer(marker); } + // add markers for LongFast channel to layer group + if(node.channel_id == "LongFast") { + nodesLongFastLayerGroup.addLayer(marker); + } + // show tooltip on desktop only if(!isMobile()){ marker.bindTooltip(getTooltipContentForNode(node), {