Properties:
color (type: color) — default: blackcoords (type: coord[]) — array of line-segment coordinatesdashed (type: bool) — whether the line is dashed, default: falsegapSize (type: number) — the size of the gaps in pixels, default: 10opacity (type: number) — default: 1Draw a line from the first coordinate to the last one.
{
"type": "line",
"color": [1, 1, 0],
"coords": [
[[0, 0, 0]],
[[1, 1, 1]]
]
}
{
"type": "line",
"color": [1, 1, 0],
"coords": [
[[0, 0, 0]],
[[1, 1, 1]]
],
"dashed": true
}