Icon Layer
An icon per row from an atlas image: a string column names each row’s icon in the mapping.
Syntax
{ "id": "n1", "op": "icon", "name": "icon", "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:maxRows, or read elsewhere as ch('icon/maxRows').
Inputs
| Port | Type | Takes |
|---|---|---|
in | table | one edge |
Parameters
| Parameter | Kind | Default | Choices |
|---|---|---|---|
position | expr | "P" | |
icon | column | "icon" | |
color | expr | "" | |
size | expr | "" | |
angle | expr | "" | |
maxRows | int | 0 | |
ramp | menu | "viridis" | 37 choices |
iconAtlas | url | "" | |
iconMapping | text | "{}" | |
sizeScale | float | 1 | |
sizeUnits | menu | "pixels" | pixels, meters, common |
sizeMinPixels | float | 0 | |
sizeMaxPixels | float | 0 | |
sizeBasis | menu | "height" | height, width |
billboard | toggle | true | |
iconColor | color | [0,0,0] | |
offsetX | float | 0 | |
offsetY | float | 0 | |
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:
icon
Older projects
Projects saved before documents used operator classes. These convert to icon when they open: IconLayerOp.