Skip to main content

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​

PortTypeTakes
intableone edge

Parameters​

ParameterKindDefaultChoices
positionexpr"P"
iconcolumn"icon"
colorexpr""
sizeexpr""
angleexpr""
maxRowsint0
rampmenu"viridis"37 choices
iconAtlasurl""
iconMappingtext"{}"
sizeScalefloat1
sizeUnitsmenu"pixels"pixels, meters, common
sizeMinPixelsfloat0
sizeMaxPixelsfloat0
sizeBasismenu"height"height, width
billboardtoggletrue
iconColorcolor[0,0,0]
offsetXfloat0
offsetYfloat0
opacityfloat1
blendmenu"normal"normal, additive, subtractive
depthTesttoggletrue
depthWritetoggletrue
extensionsfield[]

Outputs​

PortType
outlayer

Details​

  • Category: Layers
  • Operator: icon

Older projects​

Projects saved before documents used operator classes. These convert to icon when they open: IconLayerOp.