hupe13
hupe13
@bozdoz I can help you in testing. In any case, we must offer both options: Leaflet 1.9.4 and 2.0. My WordPress plugin depends on other Leaflet plugins, and those must...
My [WordPress Plugin](https://wordpress.org/plugins/extensions-leaflet-map/) uses leaflet-elevation. My [own code](https://github.com/hupe13/extensions-leaflet-map-github/blob/2aed1da193fa169e64923c0de4d4f6e0d67f12a9/js/elevation.js#L98) seems to fix this problem. I used the whole duration. The main reason for the code was that I believe, what do...
> this would also solve https://github.com/Raruto/leaflet-elevation/issues/170? No, it does not. I guess, this [line](https://github.com/Raruto/leaflet-elevation/blob/8658bfad0ee00ede92bdf4b6d130cc959e90cdd7/src/handlers/time.js#L69) is wrong, it takes the wrong values to compute and show the duration. But I can't...
> problem https://github.com/Raruto/leaflet-elevation/issues/170 What is [`d`](https://github.com/Raruto/leaflet-elevation/blob/8658bfad0ee00ede92bdf4b6d130cc959e90cdd7/src/handlers/time.js#L69) ? How is this calculated? ``` tickFormat : (d) => (d == 0 ? '' : opts.xTimeFormat(d)), ```
This is not true. `d` is a sequential number from 1 to the count of vertical lines. `console.log(d)` shows this. It should be the duration on this distance, but it...