mirror of
https://github.com/Roslund/meshtastic-map.git
synced 2026-03-28 17:43:03 +01:00
Fix order of backbone neighbours and assume sumetrical connections
This commit is contained in:
@@ -3714,12 +3714,12 @@
|
|||||||
|
|
||||||
// additional line for backbone neighbours
|
// additional line for backbone neighbours
|
||||||
const backboneNeighbourLine = L.polyline([
|
const backboneNeighbourLine = L.polyline([
|
||||||
currentNode.getLatLng(),
|
|
||||||
neighbourNodeMarker.getLatLng(),
|
neighbourNodeMarker.getLatLng(),
|
||||||
|
currentNode.getLatLng(),
|
||||||
], {
|
], {
|
||||||
color: getColourForSnr(neighbour.snr),
|
color: getColourForSnr(neighbour.snr),
|
||||||
opacity: 0.75,
|
opacity: 0.75,
|
||||||
offset: symmetrical ? 3 : 0,
|
offset: 3, // assuming symmetrical connection
|
||||||
}).arrowheads({
|
}).arrowheads({
|
||||||
size: '10px',
|
size: '10px',
|
||||||
fill: true,
|
fill: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user