Repository navigation
User DistanceTextIndicator
roosit edited this page Oct 16, 2026
·
4 revisions
Back to list | JSON template | Русский
Shows as text how far you have gone so far and the full distance of the track. The units and the look of the line are configurable.
- For a "covered of total" caption on a video with a GPX track.
- For a compact distance counter next to the speed or the map.
| Setting | What it does |
|---|---|
| Distance | Selects the distance sensor. |
| Value font | Name, style, size, and color of the text. Size 48 and white by default. |
| Unit font | Name, style, and size of the unit font. Size 28 by default. In the current version the text is drawn with the value font, so this setting has no visible effect. |
| Text Alignment | Position of the text inside the layer: one of nine (centered by default). |
| Units | Measurement system, unit label format, and distance unit. |
| Text Template | A string with distance variables. |
The "Minimal" skin replaces the template with {currNum} {currUnit}: only the covered distance remains.
The values are already converted to the selected units. If the unit is not fixed, it is chosen automatically for each distance separately, so the current and full distances can be in different units (for example, meters and kilometers).
| Variable | Default format | What it shows |
|---|---|---|
{currNum} |
%.2f |
Distance covered from the start of the track to the current moment. |
{currUnit} |
%s |
Unit for {currNum}. |
{fullNum} |
%.0f |
Full distance of the track. |
{fullUnit} |
%s |
Unit for {fullNum}. |
Default template: {currNum} {currUnit} of {fullNum} {fullUnit}.
- To remove "of", change the template or enable the "Minimal" skin.
- Unit label format: "Full (kilometers)", "Normal (km)", "Short", or "Symbol".
- If the distance does not appear, check that the source has a distance sensor and that it is selected in the "Distance" setting.