Closed hupe13 closed 2 years ago
You must change for hotline: https://github.com/Raruto/leaflet-elevation/blob/1d374c9ff0229e64c72e03214266102ceae1b42e/src/control.js#L429
let geo = L.geoJson(trkseg.toGeoJSON(), { coordsToLatLng: (coords) => L.latLng(coords[0], coords[1], coords[2]*this.options.altitudeFactor)});
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,
I would like make a pull request, but I don't know how to get the correct values on the y-axis.
Hi Raruto,
does not work, the track is displayed. in green color only If
imperial
isfalse
, then it is okay.The reason may be, that the values for altitude are not correctly calculated. I figured out how to show the values in the tooltips correctly, but the values on the y-axis and the hotline is still wrong.