Repository navigation
User JSON CompassIndicator
roosit edited this page Oct 16, 2026
·
2 revisions
Back to list | Indicator page | Русский
This page describes the JSON template of the compass indicator for manual editing of .vttp. The indicator draws a compass rose rotated to the direction of movement.
{
"name": "com.velitask.plagin.official.compass",
"data": {
"maket": { "preset": "auto" },
"properties": {
"Geo": {},
"bodyColor": {"r":34,"g":51,"b":68,"a":255},
"ringColor": {"r":255,"g":255,"b":255,"a":255},
"needleNorthColor": {"r":204,"g":51,"b":51,"a":255},
"needleSouthColor": {"r":221,"g":221,"b":221,"a":255}
}
}
}The GPS sensor choice ("Geo"). An empty object means the sensor is picked automatically when the indicator is added to a project.
{
"Geo": {}
}| Field | Values | What it does |
|---|---|---|
sourceId |
source id in the project | In a real project it points to the source. It is not specified in a hand-written template. |
sensorId |
sensor id in the source | In a real project it points to the GPS sensor. It is not specified in a hand-written template. |
The body color ("Body color").
{
"bodyColor": {"r":34,"g":51,"b":68,"a":255}
}| Field | Values | What it does |
|---|---|---|
r |
0..255 |
Red channel. |
g |
0..255 |
Green channel. |
b |
0..255 |
Blue channel. |
a |
0..255 |
Transparency: 0 is fully transparent, 255 is opaque. |
The color of the ring and the tick marks ("Ring color").
{
"ringColor": {"r":255,"g":255,"b":255,"a":255}
}| Field | Values | What it does |
|---|---|---|
r |
0..255 |
Red channel. |
g |
0..255 |
Green channel. |
b |
0..255 |
Blue channel. |
a |
0..255 |
Transparency: 0 is fully transparent, 255 is opaque. |
The color of the north part of the needle ("North needle").
{
"needleNorthColor": {"r":204,"g":51,"b":51,"a":255}
}| Field | Values | What it does |
|---|---|---|
r |
0..255 |
Red channel. |
g |
0..255 |
Green channel. |
b |
0..255 |
Blue channel. |
a |
0..255 |
Transparency: 0 is fully transparent, 255 is opaque. |
The color of the south part of the needle ("South needle").
{
"needleSouthColor": {"r":221,"g":221,"b":221,"a":255}
}| Field | Values | What it does |
|---|---|---|
r |
0..255 |
Red channel. |
g |
0..255 |
Green channel. |
b |
0..255 |
Blue channel. |
a |
0..255 |
Transparency: 0 is fully transparent, 255 is opaque. |