From b1755d4b734bafd4bce37b71a13dd19090fa11c4 Mon Sep 17 00:00:00 2001 From: Anton Roslund Date: Sun, 17 Aug 2025 22:31:26 +0200 Subject: [PATCH] Add MediumFast filter --- src/public/index.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/public/index.html b/src/public/index.html index 4c23b9f..f97214e 100644 --- a/src/public/index.html +++ b/src/public/index.html @@ -2720,6 +2720,7 @@ disableClusteringAtZoom: 10, // zoom level where node clustering is disabled }); var nodesBackboneLayerGroup = new L.LayerGroup(); + var nodesMediumFastLayerGroup = new L.LayerGroup(); var waypointsLayerGroup = new L.LayerGroup(); var nodePositionHistoryLayerGroup = new L.LayerGroup(); var traceroutesLayerGroup = new L.LayerGroup(); @@ -2791,6 +2792,7 @@ "All": nodesLayerGroup, "Routers": nodesRouterLayerGroup, "Backbone": nodesBackboneLayerGroup, + "Medium Fast": nodesMediumFastLayerGroup, "Clustered": nodesClusteredLayerGroup, "None": new L.LayerGroup(), }, @@ -2970,6 +2972,7 @@ nodesClusteredLayerGroup.clearLayers(); nodesRouterLayerGroup.clearLayers(); nodesBackboneLayerGroup.clearLayers(); + nodesMediumFastLayerGroup.clearLayers(); } function clearAllNeighbours() { @@ -3557,6 +3560,11 @@ nodesBackboneLayerGroup.addLayer(marker); } + // add markers for MediumFast channel to layer group + if(node.channel_id == "MediumFast") { + nodesMediumFastLayerGroup.addLayer(marker); + } + // show tooltip on desktop only if(!isMobile()){ marker.bindTooltip(getTooltipContentForNode(node), {