Skip to content

{{track_info}} not always correctly build  #283

@CoppensD

Description

@CoppensD

Checklist

  • I've searched through the existing issues and this bug has never been reported before

Subject of the issue

Like described in #241 when using a custom summary the track_info is not always displayed.

The default summary is always correct and shown.
But when you want to access the {{track_info}} object it's sometimes incomplete.

In console.log I get this for the track_info

{name: '2024-01-07 09:30'}

After a few refreshes I get

{name: '2024-01-07 09:30', distance: 12.251, time: 7788759, elevation_max: 75.57, elevation_min: 7.78, …}

and then I show the correct data for the track_info

My code is created as described in the demo for custom summary or #241

Steps to reproduce

https://raruto.github.io/leaflet-elevation/examples/leaflet-elevation_custom-summary.html
did quite a few refreshes and suddenly I get no info
0
image

Environment

Windows 11 - Chrome version 120.0.6099.224

Link to your project

No response

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions