For the gimmick I use the array keys. Each array key is an (internal) point where data is calculated. In OpenlayersOpenLayers is an array with all coordinates + the elevation. I would like to extend this array by the distance. Whether the array values should be the continuous distance or that from last-trkpt to next-trkpt, I would have to think twice. Maybe a value with last-trkpt to next-trkpt is probably better.
PleaseIs there a solution without OL npm. I use only the ol.css and ol.js v5.3.0.