Skip to content

User JSON GeoMapIndicator

roosit edited this page May 31, 2026 · 3 revisions

Map JSON

Back to list | Indicator page | Russian

Purpose

This page describes the JSON template for the geoMap indicator for manual .vttp editing.

Full Template

{
  "name": "com.velitask.plagin.official.geoMap",
  "data": {
    "maket": { "preset": "auto" },
    "properties": {
      "Geo": {},
      "mapTiles": {},
      "visible": {"value":true},
      "fitTrack": {"value":true},
      "geoZoom": {"value":15},
      "transparency": {"value":0},
      "border": {"lineColor":{"r":255,"g":255,"b":255,"a":255},"thickness":{"value":1},"style":{"value":0},"dashPattern":{"value":""},"cornerRadius":{"value":0}},
      "view3D": {"value":false},
      "tilt": {"value":50},
      "rotation": {"value":0},
      "manualBearing": {"value":0},
      "minSpeedKmh": {"value":2},
      "vehicleAnchor": {"value":0}
    },
    "figures": [
      {"name":"placeBoundary","properties":{"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":{"value":55},"cityShow":{"value":true},"cityZoom":{"value":8},"townShow":{"value":true},"townZoom":{"value":10},"villageShow":{"value":true},"villageZoom":{"value":12},"hamletShow":{"value":true},"hamletZoom":{"value":14}}},
      {"name":"track","properties":{"Geo":{},"line":{"lineColor":{"r":255,"g":255,"b":255,"a":255},"thickness":{"value":1},"style":{"value":0},"dashPattern":{"value":""}}}},
      {"name":"position","properties":{"Geo":{},"fillColor":{"r":0,"g":0,"b":200,"a":255},"borderColor":{"r":255,"g":255,"b":255,"a":255},"size":{"value":30}}},
      {"name":"placeLabels","properties":{"textColor":{"r":30,"g":30,"b":30,"a":255},"haloColor":{"r":255,"g":255,"b":255,"a":255},"size":{"value":16},"showMarker":{"value":false},"cityShow":{"value":true},"cityZoom":{"value":8},"cityDelta":{"value":100},"townShow":{"value":true},"townZoom":{"value":10},"townDelta":{"value":85},"villageShow":{"value":true},"villageZoom":{"value":12},"villageDelta":{"value":72},"hamletShow":{"value":true},"hamletZoom":{"value":14},"hamletDelta":{"value":62}}}
    ]
  }
}

Settings

Geo

Selects the GPS sensor.

{
  "Geo": {}
}
Field Values What it does
sourceId id of the source in the project In a real Mixel selects the data source. May be absent in the template.
sensorId id of the sensor in the source In a real Mixel selects the specific sensor. May be absent in the template.

mapTiles

Defines the source and cache of the map tiles.

{
  "mapTiles": {}
}
Field Values What it does
value or nested fields depends on the setting type Stores the setting value.

visible

Enables or hides the background map.

{
  "visible": {"value":true}
}
Field Values What it does
value true, false Show the background map.

fitTrack

Automatically picks a scale so the track fits into the layer.

{
  "fitTrack": {"value":true}
}
Field Values What it does
value true, false When true the scale is picked automatically, the manual geoZoom is ignored.

When true, rotation, 3D view, and vehicle anchor are not applied.

geoZoom

Sets the map scale when auto-fit is off.

{
  "geoZoom": {"value":15}
}
Field Values What it does
value a number within the setting's allowed range The scale value.

transparency

Makes the background map more transparent.

{
  "transparency": {"value":0}
}
Field Values What it does
value 0..100 Tile transparency: 0 opaque, 100 fully transparent.

border

Layer border: color, thickness, style, and corner rounding.

{
  "border": {"lineColor":{"r":255,"g":255,"b":255,"a":255},"thickness":{"value":1},"style":{"value":0},"dashPattern":{"value":""},"cornerRadius":{"value":0}}
}
Field Values What it does
lineColor color object Border color.
thickness 0..50 Border thickness; 0 hides the border.
style 0, 1, … Line style.
dashPattern string Dash pattern.
cornerRadius 0..500 Corner rounding; 0 — straight corners.

lineColor

{
  "lineColor": {"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 fully transparent, 255 opaque.

view3D

Enables the tilted 3D view of the map.

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

tilt

Camera tilt strength in the 3D view. Works only when view3D: true.

{
  "tilt": {"value":50}
}
Field Values What it does
value 0..80 Tilt angle in degrees.

rotation

How the map is oriented.

{
  "rotation": {"value":0}
}
Field Values What it does
value 0, 1, 2 Rotation mode index.
Value Mode
0 North up.
1 By direction of travel.
2 Manual.

manualBearing

Fixed map bearing. Applied in rotation: 2 (manual) mode.

{
  "manualBearing": {"value":0}
}
Field Values What it does
value 0..359 Map rotation angle in degrees.

minSpeedKmh

Minimum speed for turning the map by heading. Applied in rotation: 1 (by direction of travel) mode.

{
  "minSpeedKmh": {"value":2}
}
Field Values What it does
value 0..50 Below this speed (km/h) the map holds the previous heading.

vehicleAnchor

Where to keep the current position in the frame.

{
  "vehicleAnchor": {"value":0}
}
Field Values What it does
value 0, 1 Vehicle anchor index.
Value Anchor
0 Centered.
1 In the bottom third of the frame.

figures

Map figures: settlement boundaries, track, position marker, and labels. By default all four are enabled.

{
  "figures": [
    {"name":"placeBoundary","properties":{ ... }},
    {"name":"track","properties":{ ... }},
    {"name":"position","properties":{ ... }},
    {"name":"placeLabels","properties":{ ... }}
  ]
}
Field Values What it does
name placeBoundary, track, position, placeLabels Selects the map figure.
properties figure settings object Stores the settings of the selected figure.

placeBoundary

Draws settlement outlines from OpenStreetMap. Point settlements without a polygon are replaced with a radius circle.

{
  "name":"placeBoundary",
  "properties":{
    "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":{"value":55},
    "cityShow":{"value":true},"cityZoom":{"value":8},
    "townShow":{"value":true},"townZoom":{"value":10},
    "villageShow":{"value":true},"villageZoom":{"value":12},
    "hamletShow":{"value":true},"hamletZoom":{"value":14}
  }
}
Field Values What it does
mode 0, 1, 2 Mode: 0 active only, 1 nearest, 2 all polygons.
line line object Color and thickness of the outline.
fillColor color object Outline fill color.
showFill true, false Fill the outline with color.
showHighlight true, false Highlight the settlement you are in.
highlightColor color object Color of the current settlement highlight.
transparency 0..100 Highlight transparency.
cityShow / townShow / villageShow / hamletShow true, false Show outlines of cities / towns / villages / hamlets.
cityZoom / townZoom / villageZoom / hamletZoom 1..19 The scale from which to show outlines of this type.

track

GPS track line.

{
  "name":"track",
  "properties":{"Geo":{},"line":{"lineColor":{"r":255,"g":255,"b":255,"a":255},"thickness":{"value":1},"style":{"value":0},"dashPattern":{"value":""}}}
}
Field Values What it does
Geo sensor object Geo data source of the track.
line line object Color, thickness, and style of the track line.

position

Current position marker.

{
  "name":"position",
  "properties":{"Geo":{},"fillColor":{"r":0,"g":0,"b":200,"a":255},"borderColor":{"r":255,"g":255,"b":255,"a":255},"size":{"value":30}}
}
Field Values What it does
Geo sensor object Geo data source of the position.
fillColor color object Marker fill color.
borderColor color object Marker border color.
size number Marker size.

placeLabels

Settlement names from OpenStreetMap. In the 3D view distant names shrink (depth effect).

{
  "name":"placeLabels",
  "properties":{
    "textColor":{"r":30,"g":30,"b":30,"a":255},
    "haloColor":{"r":255,"g":255,"b":255,"a":255},
    "size":{"value":16},
    "showMarker":{"value":false},
    "cityShow":{"value":true},"cityZoom":{"value":8},"cityDelta":{"value":100},
    "townShow":{"value":true},"townZoom":{"value":10},"townDelta":{"value":85},
    "villageShow":{"value":true},"villageZoom":{"value":12},"villageDelta":{"value":72},
    "hamletShow":{"value":true},"hamletZoom":{"value":14},"hamletDelta":{"value":62}
  }
}
Field Values What it does
textColor color object Color of the names.
haloColor color object Color of the halo around the text.
size 8..72 Base font size.
showMarker true, false Draw a dot next to the name.
cityShow / townShow / villageShow / hamletShow true, false Show names of cities / towns / villages / hamlets.
cityZoom / townZoom / villageZoom / hamletZoom 1..19 The scale from which to show names of this type.
cityDelta / townDelta / villageDelta / hamletDelta 10..300 Relative size of names of this type, %.

Clone this wiki locally