Closed MingweiSamuel closed 2 years ago
Tooltip can be fixed easily:
- chart: (item) => L._("y: ") + _.round(item[opts.yAttr], opts.decimalsY) + " " + altitude.label,
- marker: (item) => _.round(item[opts.yAttr], opts.decimalsY) + " " + altitude.label,
+ chart: (item) => L._("y: ") + _.round(item[opts.yAttr] * opts.altitudeFactor, opts.decimalsY) + " " + altitude.label,
+ marker: (item) => _.round(item[opts.yAttr] * opts.altitudeFactor, opts.decimalsY) +
" " + altitude.label,
But having trouble with the chart axis
Subject of the issue
GPX
<ele>
tags report the elevation in meters. However when loading usingleaflet-elevation
withimperial: true
the values are not converted to feet. Instead, the meter values are displayed as if they were feet. (90m => 90ft)Your environment