Skip to content

User SlopeTextIndicator

roosit edited this page Oct 16, 2026 · 4 revisions

Slope Text

Back to list | JSON template | Русский

What it does

Shows text about the current stretch of the route: climb, descent or flat, the slope percent, the distance covered within the stretch, the stretch length, the height difference, the current elevation, and the climb and descent totals. The text is built from a configurable template.

When to use it

  • As a compact caption of the current stretch next to "Elevation Chart".
  • To show the slope percent and the elevation gain in the frame.
  • When you need your own text format, for example only an arrow and a percent.

A source with slope data is required. If no stretch is defined for the current point, the indicator shows nothing.

Settings

Setting What it does
Slope Chooses the slope source and sensor.
Font Changes the text font: "Font Name", "Font Style" (plain, bold, italic), "Font Size" (48 by default) and "Color" (white by default).
Text Alignment The position of the text inside the layer: one of nine (corners, side midpoints, center). The default is centered.
Units Chooses the distance and elevation units.
Text Template Sets the text and the format of each variable.

Settings inside "Units":

Setting What it does
System "From global settings" (default), "Metric", "Imperial", "Nautical" or "Mixed".
Format How the unit is labeled: "Full (kilometers)", "Normal (km)", "Short" or "Symbol". Available when the system is not "From global settings".
Distance The distance unit (kilometers, meters, miles and so on; the set depends on the system). Available when the system is not "From global settings".
Altitude "Meters" or "Feet". Available when the system is not "From global settings".

Skins

The ready-made text variants change only the "Text Template"; choosing a skin replaces your own template.

Skin Text template
Short {typec} {pc}% — an arrow and a percent.
Detailed {type} {pc}% ele:{ele}{eleUnit} up:{up}{eleUnit} down:{down}{eleUnit} — type, percent, current elevation, climb and descent.

Text template variables

The data is taken for the current slope stretch — a continuous section of the track of one type (climb, descent or flat).

Variable Default format What it shows
{type} %s The stretch type as a word: "Uphill", "Downhill", "Flat".
{typec} %s The stretch type as a symbol: ↑, ↓ or an empty string for a flat.
{pc} %.1f The slope percent of the stretch; negative on a descent.
{curr} %.3f The distance from the start of the stretch to the current point in the selected units.
{currUnit} %s The unit label for {curr}.
{length} %.2f The full length of the stretch in the selected units.
{lengthUnit} %s The unit label for {length}.
{height} %.0f The height difference over the whole stretch; negative on a descent.
{heightUnit} %s The unit label for {height}.
{ele} %.0f The elevation at the current point.
{eleUnit} %s The elevation unit label (meters or feet).
{eleCurr} %.1f How much the elevation changed from the start of the stretch to the current point (unsigned).
{up} %.0f The accumulated climb up to the current point. Label the unit with {eleUnit}.
{down} %.0f The accumulated descent up to the current point, without a minus sign. Label the unit with {eleUnit}.

The default template is {type} {pc}% ({curr}{currUnit} / {length}{lengthUnit}).

Tips

  • The text is drawn on one line; for long templates, reduce the font size.
  • Distance units "From global settings" are chosen automatically (for example, meters for short stretches and kilometers for long ones), so {currUnit} and {lengthUnit} may differ.
  • If you need only an icon and a percent, choose the "Short" skin.

Clone this wiki locally