Skip to content

Commit

Permalink
Add tooltip to display length in meter precision (3 digits). Closes #38
Browse files Browse the repository at this point in the history
  • Loading branch information
nrenner committed Jun 8, 2016
1 parent 052a79c commit 0bffe0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/control/TrackStats.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ BR.TrackStats = BR.Control.extend({
html = '';

html += '<table id="stats">';
html += '<tr><td>Length: </td><td>' + L.Util.formatNum(stats.trackLength/1000,1) + '</td><td>km</td></tr>';
html += '<tr><td>Length: </td><td title="' + L.Util.formatNum(stats.trackLength/1000,3) + ' km">'
+ L.Util.formatNum(stats.trackLength/1000,1) + '</td><td>km</td></tr>';
html += '<tr><td>Ascent filtered:</td><td>' + stats.filteredAscend + '</td><td>m</td></tr>';
html += '<tr><td>Ascent plain:</td><td>' + stats.plainAscend + '</td><td>m</td></tr>';
html += '<tr><td>Cost: </td><td>' + stats.cost + '</td><td></td></tr>';
Expand Down

0 comments on commit 0bffe0c

Please sign in to comment.