diff --git a/history.js b/history.js index 2e96f62..89ea6c1 100644 --- a/history.js +++ b/history.js @@ -209,6 +209,10 @@ function addLinksToMap(map, graph) { var line = L.polyline(latlngs, opts) + var distance = new Intl.NumberFormat("de-DE", {maximumFractionDigits: 0}).format(latlngs[0].distanceTo(latlngs[1])) + + line.bindPopup(d.source.node.nodeinfo.hostname + " – " + d.target.node.nodeinfo.hostname + "
" + distance + " m") + return line })