[TASK] Add connection type to tooltip

This commit is contained in:
Xaver Maierhofer 2017-11-10 22:58:35 +01:00 committed by Xaver Maierhofer
parent dabfbfba83
commit 844bf99641

View File

@ -114,7 +114,9 @@ define(['leaflet', 'rbush', 'helper', 'moment'],
line.setStyle(opts);
};
line.bindTooltip(d.source.hostname + ' ' + d.target.hostname + '<br><strong>' + helper.showDistance(d) + ' / ' + helper.showTq(d.source_tq) + ' - ' + helper.showTq(d.target_tq) + '</strong>');
line.bindTooltip(d.source.hostname + ' ' + d.target.hostname +
'<br><strong>' + helper.showDistance(d) + ' / ' + helper.showTq(d.source_tq) + ' - ' + helper.showTq(d.target_tq) + '<br>' + d.type + '</strong>');
line.on('click', function () {
router.fullUrl({ link: d.id });
});