Skip to main content

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​

PortTypeTakes
intableone edge

Parameters​

ParameterKindDefaultChoices
positionexpr"P"
timestampexpr"t"
pathIdcolumn"row"
ordercolumn"index"
colorexpr""
widthexpr""
rampmenu"viridis"37 choices
currentTimefloat0
trailLengthfloat180
fadeTrailtoggletrue
widthMinPixelsfloat2
widthScalefloat1
widthUnitsmenu"meters"pixels, meters
lineColorcolor[253,128,93]
capRoundedtoggletrue
jointRoundedtoggletrue
miterLimitfloat4
billboardtogglefalse
opacityfloat1
blendmenu"normal"normal, additive, subtractive
depthTesttoggletrue
depthWritetoggletrue
extensionsfield[]

Outputs​

PortType
outlayer

Details​

  • Category: Layers
  • Operator: trips

Older projects​

Projects saved before documents used operator classes. These convert to trips when they open: TripsLayerOp.