Skip to main content

Arc Layer

An arc per row between two positions.

Syntax​

{ "id": "n1", "op": "arc", "name": "arc", "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('arc/widthScale').

Inputs​

PortTypeTakes
intableone edge

Parameters​

ParameterKindDefaultChoices
sourceexpr"[lng, lat]"
targetexpr"[r_lng, r_lat]"
sourceColorexpr""
targetColorexpr""
widthexpr""
tiltByexpr""
rampmenu"viridis"37 choices
widthScalefloat1.5
widthUnitsmenu"pixels"pixels, meters, common
heightfloat1
tiltfloat0
greatCircletogglefalse
fromColorcolor[0,180,255]
toColorcolor[255,60,120]
numSegmentsint50
widthMinPixelsfloat0
widthMaxPixelsfloat0
opacityfloat1
blendmenu"normal"normal, additive, subtractive
depthTesttoggletrue
depthWritetoggletrue
extensionsfield[]

Outputs​

PortType
outlayer

Details​

  • Category: Layers
  • Operator: arc

Older projects​

Projects saved before documents used operator classes. These convert to arc when they open: ArcLayerOp, GreatCircleLayerOp.