Repository navigation
User SlopeTextIndicator
roosit edited this page May 15, 2026
·
4 revisions
Back to list | JSON template | Russian
Shows slope type, percentage, distance, and elevation through an editable text template.
Use it next to an elevation chart or as a compact label for the current route segment.
| Setting | What it does |
|---|---|
| Slope source | Selects the slope sensor. |
| Font | Changes text font and color. |
| Alignment | Aligns text inside the layer. |
| Units | Selects distance and elevation units. |
| Text template | Defines the text and slope variables. |
The text template shows data for the current slope segment. The segment comes from the slope_groups table: the indicator finds the group that contains the current track distance.
| Variable | Default format | What it shows |
|---|---|---|
{type} |
%s |
Current segment type: ascent, descent, or flat. |
{typec} |
%s |
Short segment symbol: ↑, ↓, or an empty string for flat. |
{pc} |
%.1f |
Slope percentage for the current segment. |
{curr} |
%.3f |
Distance already traveled inside the current segment, from group start to current point. |
{currUnit} |
%s |
Measurement unit for {curr}. |
{length} |
%.2f |
Full length of the current slope segment. |
{lengthUnit} |
%s |
Measurement unit for {length}. |
{height} |
%.0f |
Elevation change across the whole current segment. |
{heightUnit} |
%s |
Measurement unit for {height}. |
{ele} |
%.0f |
Current absolute elevation at the track point. |
{eleUnit} |
%s |
Elevation measurement unit. |
{eleCurr} |
%.1f |
Absolute elevation change from the start of the current segment to the current point. |
{up} |
%.0f |
Accumulated elevation gain from the current slope atom. |
{down} |
%.0f |
Accumulated elevation loss from the current slope atom, without the minus sign. |
Default template: {type} {pc}% ({curr}{currUnit} / {length}{lengthUnit}).