Presumably this commit is to blame https://github.com/mpetazzoni/leaflet-gpx/commit/92121eaafcfd3e66d4f99926da6feac5f6ec3385. When calling get_speed_data(), I get an error stating that _toFixed_helper is undefined. The error occurs in the loaded event of creating a new L.GPX, I don't know if that matters. Below the code trimmed to (what I believe) are the essentials.
I am working in a TypeScript file with this library as node modules dependency (currently tracking Git master and Leaflet 1.9.4). Everything gets bundled into one file with webpack. I can provide more context if required.
After having another glance, perhaps it can be fixed by changing those this to _this. I do not have the time right now to check whether that behaves as expected.
Presumably this commit is to blame https://github.com/mpetazzoni/leaflet-gpx/commit/92121eaafcfd3e66d4f99926da6feac5f6ec3385. When calling
get_speed_data()
, I get an error stating that_toFixed_helper
is undefined. The error occurs in theloaded
event of creating a newL.GPX
, I don't know if that matters. Below the code trimmed to (what I believe) are the essentials.I am working in a TypeScript file with this library as node modules dependency (currently tracking Git master and Leaflet 1.9.4). Everything gets bundled into one file with webpack. I can provide more context if required.