Trips Layer
Animated trails: a trip per row when Position reads a list of positions and Timestamp a list of times; otherwise vertex rows with a timestamp each. Current time is a deck prop, so playing costs no queries.
Syntax
{ "id": "n1", "op": "trips", "name": "trips", "x": 0, "y": 0, "params": {} }
An edge into it ends at "targetPort": "in"; one out of it starts at "sourcePort": "out"; a parameter is set in params (leave out the ones at their default), driven by an edge to par:currentTime, or read elsewhere as ch('trips/currentTime').
Inputs
| Port | Type | Takes |
|---|---|---|
in | table | one edge |
Parameters
| Parameter | Kind | Default | Choices |
|---|---|---|---|
position | expr | "P" | |
timestamp | expr | "t" | |
pathId | column | "row" | |
order | column | "index" | |
color | expr | "" | |
width | expr | "" | |
ramp | menu | "viridis" | 37 choices |
currentTime | float | 0 | |
trailLength | float | 180 | |
fadeTrail | toggle | true | |
widthMinPixels | float | 2 | |
widthScale | float | 1 | |
widthUnits | menu | "meters" | pixels, meters |
lineColor | color | [253,128,93] | |
capRounded | toggle | true | |
jointRounded | toggle | true | |
miterLimit | float | 4 | |
billboard | toggle | false | |
opacity | float | 1 | |
blend | menu | "normal" | normal, additive, subtractive |
depthTest | toggle | true | |
depthWrite | toggle | true | |
extensions | field | [] |
Outputs
| Port | Type |
|---|---|
out | layer |
Details
- Category: Layers
- Operator:
trips
Older projects
Projects saved before documents used operator classes. These convert to trips when they open: TripsLayerOp.