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
|
disableClusteringAtZoom: 10, // zoom level where node clustering is disabled
|
||||||
});
|
});
|
||||||
var nodesBackboneLayerGroup = new L.LayerGroup();
|
var nodesBackboneLayerGroup = new L.LayerGroup();
|
||||||
|
var nodesMediumFastLayerGroup = new L.LayerGroup();
|
||||||
var waypointsLayerGroup = new L.LayerGroup();
|
var waypointsLayerGroup = new L.LayerGroup();
|
||||||
var nodePositionHistoryLayerGroup = new L.LayerGroup();
|
var nodePositionHistoryLayerGroup = new L.LayerGroup();
|
||||||
var traceroutesLayerGroup = new L.LayerGroup();
|
var traceroutesLayerGroup = new L.LayerGroup();
|
||||||
|
|
@ -2791,6 +2792,7 @@
|
||||||
"All": nodesLayerGroup,
|
"All": nodesLayerGroup,
|
||||||
"Routers": nodesRouterLayerGroup,
|
"Routers": nodesRouterLayerGroup,
|
||||||
"Backbone": nodesBackboneLayerGroup,
|
"Backbone": nodesBackboneLayerGroup,
|
||||||
|
"Medium Fast": nodesMediumFastLayerGroup,
|
||||||
"Clustered": nodesClusteredLayerGroup,
|
"Clustered": nodesClusteredLayerGroup,
|
||||||
"None": new L.LayerGroup(),
|
"None": new L.LayerGroup(),
|
||||||
},
|
},
|
||||||
|
|
@ -2970,6 +2972,7 @@
|
||||||
nodesClusteredLayerGroup.clearLayers();
|
nodesClusteredLayerGroup.clearLayers();
|
||||||
nodesRouterLayerGroup.clearLayers();
|
nodesRouterLayerGroup.clearLayers();
|
||||||
nodesBackboneLayerGroup.clearLayers();
|
nodesBackboneLayerGroup.clearLayers();
|
||||||
|
nodesMediumFastLayerGroup.clearLayers();
|
||||||
}
|
}
|
||||||
|
|
||||||
function clearAllNeighbours() {
|
function clearAllNeighbours() {
|
||||||
|
|
@ -3557,6 +3560,11 @@
|
||||||
nodesBackboneLayerGroup.addLayer(marker);
|
nodesBackboneLayerGroup.addLayer(marker);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// add markers for MediumFast channel to layer group
|
||||||
|
if(node.channel_id == "MediumFast") {
|
||||||
|
nodesMediumFastLayerGroup.addLayer(marker);
|
||||||
|
}
|
||||||
|
|
||||||
// show tooltip on desktop only
|
// show tooltip on desktop only
|
||||||
if(!isMobile()){
|
if(!isMobile()){
|
||||||
marker.bindTooltip(getTooltipContentForNode(node), {
|
marker.bindTooltip(getTooltipContentForNode(node), {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue