also use traceroutes for backbone connections layer.
This commit is contained in:
parent
8575d87c18
commit
7a86783ba4
1 changed files with 31 additions and 0 deletions
|
|
@ -3926,6 +3926,37 @@
|
||||||
.on('click', function(event) {
|
.on('click', function(event) {
|
||||||
event.target.closeTooltip();
|
event.target.closeTooltip();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// additional line for backbone neighbours
|
||||||
|
const backboneNeighbourLine = L.polyline([
|
||||||
|
fromMarker.getLatLng(),
|
||||||
|
toMarker.getLatLng(),
|
||||||
|
], {
|
||||||
|
color: getColourForSnr(snrDb),
|
||||||
|
opacity: 0.75,
|
||||||
|
offset: 3, // assuming symmetrical connection
|
||||||
|
}).arrowheads({
|
||||||
|
size: '10px',
|
||||||
|
fill: true,
|
||||||
|
offsets: {
|
||||||
|
start: '25px',
|
||||||
|
end: '25px',
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
backboneNeighbourLine.bindTooltip(tooltip, {
|
||||||
|
sticky: true,
|
||||||
|
opacity: 1,
|
||||||
|
interactive: true,
|
||||||
|
}).bindPopup(tooltip)
|
||||||
|
.on('click', function(event) {
|
||||||
|
event.target.closeTooltip();
|
||||||
|
});
|
||||||
|
|
||||||
|
if(fromNode.is_backbone && toNode.is_backbone) {
|
||||||
|
console.log("Adding to backbone neighbours layer group");
|
||||||
|
backboneNeighbourLine.addTo(backboneNeighboursLayerGroup);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue