CZML Polyline
- "polyline":
{ "positions": { "cartographicDegrees": [lon0, lat0, h0, lon1, lat1, h1, ...] }, "material": { "solidColor": { "color": { "rgba": [r,g,b,a] } } }, "width": <number> } — a static
multi-point line, e.g. a flight path drawn as a fixed line, as opposed to a moving "position".
- The "positions" list needs at least two
[lon, lat, height] triples.
Example: a static flight route with an endpoint label
[
{ "id": "document", "name": "Flight path", "version": "1.0" },
{
"id": "route",
"name": "London to Tokyo",
"polyline": {
"positions": { "cartographicDegrees": [-0.4543, 51.47, 0, 139.7798, 35.5494, 0] },
"material": { "solidColor": { "color": { "rgba": [0, 191, 255, 200] } } },
"width": 3
}
},
{
"id": "destination",
"name": "Tokyo",
"position": { "cartographicDegrees": [139.7798, 35.5494, 0] },
"label": {
"text": "Tokyo",
"font": "14px sans-serif",
"fillColor": { "rgba": [255, 255, 255, 255] }
}
}
]
1---2name: czml-polyline3description: CZML static polyline and polylines for flight routes, boundaries, and fixed lines connecting two or more locations. Use when the intent describes a polyline, straight or multi-segment line, route, boundary, or connection between fixed points (not a moving entity).4---56# CZML Polyline78- "polyline": `{ "positions": { "cartographicDegrees": [lon0, lat0, h0, lon1, lat1, h1, ...] },9"material": { "solidColor": { "color": { "rgba": [r,g,b,a] } } }, "width": <number> }` — a static10 multi-point line, e.g. a flight path drawn as a fixed line, as opposed to a moving "position".11- The "positions" list needs at least two `[lon, lat, height]` triples.1213## Example: a static flight route with an endpoint label1415```json16[17 { "id": "document", "name": "Flight path", "version": "1.0" },18 {19 "id": "route",20 "name": "London to Tokyo",21 "polyline": {22 "positions": { "cartographicDegrees": [-0.4543, 51.47, 0, 139.7798, 35.5494, 0] },23 "material": { "solidColor": { "color": { "rgba": [0, 191, 255, 200] } } },24 "width": 325 }26 },27 {28 "id": "destination",29 "name": "Tokyo",30 "position": { "cartographicDegrees": [139.7798, 35.5494, 0] },31 "label": {32 "text": "Tokyo",33 "font": "14px sans-serif",34 "fillColor": { "rgba": [255, 255, 255, 255] }35 }36 }37]38```