Skip to content
Snippets Groups Projects
Commit 844bf996 authored by Xaver Maierhofer's avatar Xaver Maierhofer Committed by Xaver Maierhofer
Browse files

[TASK] Add connection type to tooltip

parent dabfbfba
No related branches found
No related tags found
No related merge requests found
......@@ -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 });
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment