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), {