Repository navigation
User JSON LatLonTextIndicator
Back to list | Indicator page | Русский
This page describes the JSON template of the latLonText indicator for manual editing of .vttp: which fields exist and which values are valid.
{
"name": "com.velitask.plagin.official.latLonText",
"data": {
"maket": { "preset": "auto" },
"properties": {
"Geo": {},
"font": {
"name": "Dialog",
"style": 0,
"size": 48,
"color": { "r": 255, "g": 255, "b": 255, "a": 255 }
},
"textAlign": { "value": 4 },
"displayType": { "value": 0 },
"precision": {}
}
}
}An empty object {} in precision means the default value 7; to set your own, use {"value": 7}.
Selects the geo sensor ("Geo") that the coordinates are taken from. Leave it empty in the template: the sensor is picked automatically when the indicator is added to a project.
{
"Geo": {}
}| Field | Values | What it does |
|---|---|---|
sourceId |
{"value": number} |
Source identifier in the project. Not specified in the template. |
sensorId |
{"value": number} |
Sensor identifier in the source. Not specified in the template. |
Font and text color.
{
"font": {
"name": "Dialog",
"style": 0,
"size": 48,
"color": { "r": 255, "g": 255, "b": 255, "a": 255 }
}
}| Field | Values | What it does |
|---|---|---|
name |
string | Font name. |
style |
0, 1, 2
|
Style: 0 plain, 1 bold, 2 italic. |
size |
1..999 |
Font size. |
color.r |
0..255 |
Red channel. |
color.g |
0..255 |
Green channel. |
color.b |
0..255 |
Blue channel. |
color.a |
0..255 |
Opacity: 0 fully transparent, 255 opaque. |
Position of the text inside the layer.
{
"textAlign": {
"value": 4
}
}| Field | Values | What it does |
|---|---|---|
value |
0..8 |
Index of the text position. |
value |
Position |
|---|---|
0 |
top left |
1 |
top center |
2 |
top right |
3 |
middle left |
4 |
center (default) |
5 |
middle right |
6 |
bottom left |
7 |
bottom center |
8 |
bottom right |
Coordinate format ("Format").
{
"displayType": {
"value": 0
}
}| Field | Values | What it does |
|---|---|---|
value |
0, 1, 2
|
Format index. |
value |
Format | Example |
|---|---|---|
0 |
Decimal (signed), default | 55.7558000, 37.6173000 |
1 |
Decimal with N/S/E/W | 55.7558000°N, 37.6173000°E |
2 |
Degrees-minutes-seconds | 55°45'20.88"N, 37°37'02.28"E |
Number of decimal places in the decimal formats ("Decimal places"). It has no effect in the "Degrees-minutes-seconds" format.
{
"precision": {
"value": 7
}
}| Field | Values | What it does |
|---|---|---|
value |
0..12 |
Number of decimal places. Default is 7. An empty object {} means the default value 7; to set your own, use {"value": 7}. |
Do not set values outside the 0..12 range: they are not clamped to the range when loaded from a file.