Add MediumFast filter
This commit is contained in:
parent
02529b8b5f
commit
b1755d4b73
1 changed files with 8 additions and 0 deletions
|
|
@ -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), {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue