From 844bf99641ccb50d5c84013f5d7be78783e3df08 Mon Sep 17 00:00:00 2001 From: Xaver Maierhofer Date: Fri, 10 Nov 2017 22:58:35 +0100 Subject: [PATCH] [TASK] Add connection type to tooltip --- lib/map/labellayer.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/map/labellayer.js b/lib/map/labellayer.js index 3bceeb6..a32ce9c 100644 --- a/lib/map/labellayer.js +++ b/lib/map/labellayer.js @@ -114,7 +114,9 @@ define(['leaflet', 'rbush', 'helper', 'moment'], line.setStyle(opts); }; - line.bindTooltip(d.source.hostname + ' – ' + d.target.hostname + '
' + helper.showDistance(d) + ' / ' + helper.showTq(d.source_tq) + ' - ' + helper.showTq(d.target_tq) + ''); + line.bindTooltip(d.source.hostname + ' – ' + d.target.hostname + + '
' + helper.showDistance(d) + ' / ' + helper.showTq(d.source_tq) + ' - ' + helper.showTq(d.target_tq) + '
' + d.type + '
'); + line.on('click', function () { router.fullUrl({ link: d.id }); });