Properties:
color
(type: color) — default: blackcoords
(type: coord[]) — array of line-segment coordinatesdashed
(type: bool) — whether the line is dashed, default: false
gapSize
(type: number) — the size of the gaps in pixels, default: 10
opacity
(type: number) — default: 1
Draw 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
}