Path Layer
A path per row when Position reads a list of positions or a geometry; otherwise rows are vertices, grouped into paths by an id column and ordered by another.
Syntax
{ "id": "n1", "op": "path", "name": "path", "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:widthScale, or read elsewhere as ch('path/widthScale').
Inputs
| Port | Type | Takes |
|---|---|---|
in | table | one edge |
Parameters
| Parameter | Kind | Default | Choices |
|---|---|---|---|
position | expr | "P" | |
pathId | column | "row" | |
order | column | "index" | |
color | expr | "" | |
width | expr | "" | |
ramp | menu | "viridis" | 37 choices |
widthScale | float | 2 | |
widthMinPixels | float | 1 | |
widthUnits | menu | "pixels" | pixels, meters |
lineColor | color | [120,200,255] | |
capRounded | toggle | true | |
jointRounded | toggle | true | |
miterLimit | float | 4 | |
billboard | toggle | false | |
wrapLongitude | 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:
path
Older projects
Projects saved before documents used operator classes. These convert to path when they open: GeoJsonLayerOp, PathLayerOp.