From 0bffe0cd7cd219d75370012f6275373ba5a0ab63 Mon Sep 17 00:00:00 2001 From: Norbert Renner Date: Wed, 8 Jun 2016 12:37:54 +0200 Subject: [PATCH] Add tooltip to display length in meter precision (3 digits). Closes #38 --- js/control/TrackStats.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/control/TrackStats.js b/js/control/TrackStats.js index bd3cf24..216b28e 100644 --- a/js/control/TrackStats.js +++ b/js/control/TrackStats.js @@ -14,7 +14,8 @@ BR.TrackStats = BR.Control.extend({ html = ''; html += ''; - html += ''; + html += ''; html += ''; html += ''; html += '';
Length: ' + L.Util.formatNum(stats.trackLength/1000,1) + 'km
Length: ' + + L.Util.formatNum(stats.trackLength/1000,1) + 'km
Ascent filtered:' + stats.filteredAscend + 'm
Ascent plain:' + stats.plainAscend + 'm
Cost: ' + stats.cost + '