Skip to content

User JSON GeoMapIndicator

roosit edited this page Oct 16, 2026 · 3 revisions

Map JSON

Back to list | Indicator page | Русский

Purpose

This page describes the JSON template of the geoMap indicator for manual editing of .vttp: the settings of the map itself and of all figures on it (track, position marker, boundaries and labels of populated places).

Full Template

{
  "name": "com.velitask.plagin.official.geoMap",
  "data": {
    "maket": { "preset": "auto" },
    "properties": {
      "Geo": {},
      "visible": {"value":true},
      "fitTrack": {"value":false},
      "geoZoom": {},
      "transparency": {},
      "border": {"lineColor":{"r":255,"g":255,"b":255,"a":255},"thickness":{},"style":{"value":0},"dashPattern":{"value":""},"cornerRadius":{}},
      "view3D": {"value":false},
      "tilt": {},
      "rotation": {"value":0},
      "manualBearing": {},
      "minSpeedKmh": {},
      "vehicleAnchor": {"value":0}
    },
    "figures": [
      {
        "type": "track",
        "props": {
          "Geo": {},
          "line": {"lineColor":{"r":200,"g":0,"b":0,"a":255},"thickness":{"value":5},"style":{"value":0},"dashPattern":{"value":""}},
          "passedOnly": {"value":false}
        }
      },
      {
        "type": "position",
        "props": {
          "Geo": {},
          "fillColor": {"r":0,"g":0,"b":200,"a":255},
          "borderColor": {"r":255,"g":255,"b":255,"a":255},
          "size": {}
        }
      }
    ]
  }
}

Integer settings that the user has not changed are written as an empty object {} — this is the default value. In a template the coordinate source is left empty ("Geo": {}) — Velitask will select it itself. If you remove the whole figures block, the default figures (track and position) are added. If the block is present, only the figures listed in it are created; "figures": [] means no figures. In the props of a figure it is enough to list only the settings you change.

Settings

Geo

Selects the geo source (GPS track) from which the map is built.

{
  "Geo": {}
}
Field Values What it does
sourceId {"value": id} In a project, selects the data source. Absent in the template.
sensorId {"value": id} In a project, selects the specific geo sensor. Absent in the template.

visible

Shows or hides the map itself. The figures on it remain.

{
  "visible": {"value":true}
}
Field Values What it does
value true, false true — the map is visible, false — hidden.

fitTrack

Scales the map so that the whole track fits in the frame. With true, rotation, tilt and the position of the marker are not applied, and geoZoom is not used.

{
  "fitTrack": {"value":false}
}
Field Values What it does
value true, false true — show the whole track, false — follow the position.

geoZoom

The map zoom in the mode of following the position.

{
  "geoZoom": {}
}
Field Values What it does
value 8..19 Zoom level. The larger the number, the larger the scale. An empty object {} means the default value 14; to set your own, use {"value": N}.

transparency

Transparency of the map tiles. The track and other figures are not affected.

{
  "transparency": {}
}
Field Values What it does
value 0..100 0 — an opaque map, 100 — invisible. An empty object {} means the default value 0; to set your own, use {"value": N}.

border

A border around the map: color, thickness, line style, dash pattern and corner radius.

{
  "border": {"lineColor":{"r":255,"g":255,"b":255,"a":255},"thickness":{},"style":{"value":0},"dashPattern":{"value":""},"cornerRadius":{}}
}
Field Values What it does
lineColor.r 0..255 Red channel.
lineColor.g 0..255 Green channel.
lineColor.b 0..255 Blue channel.
lineColor.a 0..255 Transparency: 0 fully transparent, 255 opaque.
thickness.value 0..50 Border thickness; 0 removes the border. An empty object {} means the default value 1; to set your own, use {"value": N}.
style.value 0..7 Line style (table below).
dashPattern.value string Dash pattern, for example "12,6"; used when style.value = 7.
cornerRadius.value 0..500 Corner radius of the map and the border. An empty object {} means the default value 0; to set your own, use {"value": N}.

Line styles (style.value):

Value Style Pattern
0 Solid empty
1 Dash 12,6
2 Dot 2,4
3 Dash-dot 12,6,2,6
4 Dash-dot-dot 12,6,2,6,2,6
5 Long dash 20,8
6 Short dash 6,4
7 Custom the value of dashPattern.value

A pattern is numbers separated by commas: dash length, gap length, and so on. For the styles 0..6 the pattern is set by the style itself; a custom pattern works only when style.value = 7.

view3D

Turns on the tilt of the map. The angle is set by tilt. With fitTrack = true the tilt is not applied.

{
  "view3D": {"value":false}
}
Field Values What it does
value true, false true — the 3D view is on.

tilt

The tilt angle of the map in the 3D view.

{
  "tilt": {}
}
Field Values What it does
value 0..85 Angle in degrees: 0 is a flat map. Works only with view3D = true. An empty object {} means the default value 50; to set your own, use {"value": N}.

rotation

The map rotation mode.

{
  "rotation": {"value":0}
}
Field Values What it does
value 0, 1, 2 Mode index.
Value Mode What it does
0 North up The map is not rotated.
1 Heading up The map is rotated so that the movement goes up; minSpeedKmh is taken into account.
2 Manual The map is rotated by the angle manualBearing.

manualBearing

The rotation angle of the map in the "Manual" mode.

{
  "manualBearing": {}
}
Field Values What it does
value 0..359 Angle in degrees. Works with rotation = 2. An empty object {} means the default value 0; to set your own, use {"value": N}.

minSpeedKmh

The minimum speed for turning the map to the direction of movement.

{
  "minSpeedKmh": {}
}
Field Values What it does
value 0..50 Speed in km/h. Below it the map keeps the last direction. Works with rotation = 1. An empty object {} means the default value 2; to set your own, use {"value": N}.

vehicleAnchor

The position of the current location on the map.

{
  "vehicleAnchor": {"value":0}
}
Field Values What it does
value 0, 1 0 — centered, 1 — in the bottom third of the frame (more of the path ahead is visible).

figures

An array of figures drawn on top of the map. The order of the elements is the stacking order: the first figure is drawn at the very bottom. Each figure is an object with the fields type (the type) and props (the settings).

{
  "figures": [
    { "type": "track", "props": {} },
    { "type": "position", "props": {} }
  ]
}
Field Values What it does
type "track", "position", "placeBoundary", "placeLabels" Figure type. An unknown type is ignored.
props object Figure settings; unspecified ones take their defaults.

Color

All color settings of the figures are written the same way:

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 fully transparent, 255 opaque.

Line

The line setting of the track and placeBoundary figures is built like the border, but without the corner radius:

{
  "line": {"lineColor":{"r":200,"g":0,"b":0,"a":255},"thickness":{"value":5},"style":{"value":0},"dashPattern":{"value":""}}
}
Field Values What it does
lineColor r/g/b/a, 0..255 Line color.
thickness.value see the figure Line thickness in pixels.
style.value 0..7 Line style, values as in the table for border.
dashPattern.value string Dash pattern, for example "12,6"; works when style.value = 7.

The track figure

The GPS track line.

{
  "type": "track",
  "props": {
    "Geo": {},
    "line": {"lineColor":{"r":200,"g":0,"b":0,"a":255},"thickness":{"value":5},"style":{"value":0},"dashPattern":{"value":""}},
    "passedOnly": {"value":false}
  }
}
Geo

The geo source of the figure; empty in a template, as for the map (see above for the sourceId and sensorId fields).

{
  "Geo": {}
}
line

The track line.

{
  "line": {"lineColor":{"r":200,"g":0,"b":0,"a":255},"thickness":{"value":5},"style":{"value":0},"dashPattern":{"value":""}}
}
Field Values What it does
lineColor r/g/b/a, 0..255 Color. Red 200, 0, 0, 255 by default.
thickness.value 1..30 Thickness. 5 by default.
style.value 0..7 Line style. 0 (solid) by default.
dashPattern.value string Dash pattern for style.value = 7.
passedOnly

Shows the track only up to the current position.

{
  "passedOnly": {"value":false}
}
Field Values What it does
value true, false true — only the passed path is visible, false — the whole track.

The position figure

A circle at the current position.

{
  "type": "position",
  "props": {
    "Geo": {},
    "fillColor": {"r":0,"g":0,"b":200,"a":255},
    "borderColor": {"r":255,"g":255,"b":255,"a":255},
    "size": {}
  }
}
Geo

The geo source of the figure; empty in a template.

{
  "Geo": {}
}
fillColor

The fill color of the circle.

{
  "fillColor": {"r":0,"g":0,"b":200,"a":255}
}

The channels r, g, b, a are 0..255 (see "Color"). Blue by default.

borderColor

The stroke color of the circle.

{
  "borderColor": {"r":255,"g":255,"b":255,"a":255}
}

The channels r, g, b, a are 0..255. White by default.

size

The diameter of the circle.

{
  "size": {}
}
Field Values What it does
value 4..100 Diameter in pixels. An empty object {} means the default value 30; to set your own, use {"value": N}.

The placeBoundary figure

Boundaries of cities, towns, villages and hamlets. The figure has no Geo field.

{
  "type": "placeBoundary",
  "props": {
    "mode": {"value":0},
    "line": {"lineColor":{"r":180,"g":80,"b":0,"a":255},"thickness":{"value":2},"style":{"value":0},"dashPattern":{"value":""}},
    "fillColor": {"r":255,"g":160,"b":60,"a":60},
    "showFill": {"value":false},
    "showHighlight": {"value":true},
    "highlightColor": {"r":255,"g":210,"b":70,"a":255},
    "transparency": {},
    "cityShow": {"value":true},
    "cityZoom": {},
    "townShow": {"value":true},
    "townZoom": {},
    "villageShow": {"value":true},
    "villageZoom": {},
    "hamletShow": {"value":true},
    "hamletZoom": {}
  }
}
mode

The display mode of the boundaries.

{
  "mode": {"value":0}
}
Field Values What it does
value 0, 1, 2 Mode index.
Value Mode What it shows
0 Active only The outline of the place where the position is. The type and zoom settings are not taken into account.
1 Nearest The outline of the place nearest to the position among the enabled types.
2 All polygons All outlines of the enabled types in the visible area.
line

The outline line.

{
  "line": {"lineColor":{"r":180,"g":80,"b":0,"a":255},"thickness":{"value":2},"style":{"value":0},"dashPattern":{"value":""}}
}
Field Values What it does
lineColor r/g/b/a, 0..255 Color. 180, 80, 0, 255 by default.
thickness.value 1..20 Thickness. 2 by default.
style.value 0..7 Line style (as for border).
dashPattern.value string Dash pattern for style.value = 7.
fillColor

The fill color of the regular outlines.

{
  "fillColor": {"r":255,"g":160,"b":60,"a":60}
}

The channels r, g, b, a are 0..255. Semi-transparent orange by default.

showFill

Turns on the fill of the regular outlines with the fillColor color.

{
  "showFill": {"value":false}
}
Field Values What it does
value true, false true — the fill is on.
showHighlight

Highlights the current (or nearest) outline with the highlightColor fill and a line 1.6 times thicker.

{
  "showHighlight": {"value":true}
}
Field Values What it does
value true, false true — the highlight is on.
highlightColor

The highlight color.

{
  "highlightColor": {"r":255,"g":210,"b":70,"a":255}
}

The channels r, g, b, a are 0..255. Yellow by default. The final transparency of the highlight is set by the transparency field.

transparency

The transparency of the highlight.

{
  "transparency": {}
}
Field Values What it does
value 0..100 0 — an opaque highlight, 100 — invisible. An empty object {} means the default value 55; to set your own, use {"value": N}.
cityShow, townShow, villageShow, hamletShow

Turn the boundaries of cities, towns, villages and hamlets on or off.

{
  "cityShow": {"value":true},
  "townShow": {"value":true},
  "villageShow": {"value":true},
  "hamletShow": {"value":true}
}
Field Values What it does
value true, false true — the boundaries of this type are shown.
cityZoom, townZoom, villageZoom, hamletZoom

The minimum map zoom from which the boundaries of this type are shown.

{
  "cityZoom": {},
  "townZoom": {},
  "villageZoom": {},
  "hamletZoom": {}
}
Field Values What it does
value 1..19 The zoom from which the type is visible. 8, 10, 12, 14 by default. An empty object {} means the default value; to set your own, use {"value": N}.

The placeLabels figure

Names of cities, towns, villages and hamlets. The figure has no Geo field.

{
  "type": "placeLabels",
  "props": {
    "textColor": {"r":30,"g":30,"b":30,"a":255},
    "haloColor": {"r":255,"g":255,"b":255,"a":255},
    "size": {},
    "showMarker": {"value":false},
    "cityShow": {"value":true},
    "cityZoom": {},
    "cityDelta": {},
    "townShow": {"value":true},
    "townZoom": {},
    "townDelta": {},
    "villageShow": {"value":true},
    "villageZoom": {},
    "villageDelta": {},
    "hamletShow": {"value":true},
    "hamletZoom": {},
    "hamletDelta": {}
  }
}
textColor

The color of the label letters.

{
  "textColor": {"r":30,"g":30,"b":30,"a":255}
}

The channels r, g, b, a are 0..255. Dark gray by default.

haloColor

The color of the letter outline, and also of the marker outline.

{
  "haloColor": {"r":255,"g":255,"b":255,"a":255}
}

The channels r, g, b, a are 0..255. White by default.

size

The base font size.

{
  "size": {}
}
Field Values What it does
value 8..72 Font size. The final label size is this value multiplied by the percentage of the type (cityDelta, etc.). An empty object {} means the default value 16; to set your own, use {"value": N}.
showMarker

Puts a dot next to the label.

{
  "showMarker": {"value":false}
}
Field Values What it does
value true, false true — the marker is shown.
cityShow, townShow, villageShow, hamletShow

Turn the labels of cities, towns, villages and hamlets on or off.

{
  "cityShow": {"value":true},
  "townShow": {"value":true},
  "villageShow": {"value":true},
  "hamletShow": {"value":true}
}
Field Values What it does
value true, false true — the labels of this type are shown.
cityZoom, townZoom, villageZoom, hamletZoom

The minimum map zoom from which the labels of this type are shown.

{
  "cityZoom": {},
  "townZoom": {},
  "villageZoom": {},
  "hamletZoom": {}
}
Field Values What it does
value 1..19 The zoom from which the type is visible. 8, 10, 12, 14 by default. An empty object {} means the default value; to set your own, use {"value": N}.
cityDelta, townDelta, villageDelta, hamletDelta

The label size of this type as a percentage of size.

{
  "cityDelta": {},
  "townDelta": {},
  "villageDelta": {},
  "hamletDelta": {}
}
Field Values What it does
value 10..300 Percentage of the base size. 100, 85, 72, 62 by default. An empty object {} means the default value; to set your own, use {"value": N}.

Clone this wiki locally