Grid Layer
Rows binned into square cells, colored and raised by per-row weights deck sums per bin.
Syntax
{ "id": "n1", "op": "grid-layer", "name": "grid-layer", "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:cellSize, or read elsewhere as ch('grid-layer/cellSize').
Inputs
| Port | Type | Takes |
|---|---|---|
in | table | one edge |
Parameters
| Parameter | Kind | Default | Choices |
|---|---|---|---|
position | expr | "P" | |
colorWeight | expr | "" | |
elevationWeight | expr | "" | |
cellSize | float | 1000 | |
colorAggregation | menu | "SUM" | SUM, MEAN, MIN, MAX, COUNT |
upperPercentile | float | 100 | |
lowerPercentile | float | 0 | |
colorScaleType | menu | "quantize" | quantize, linear, quantile, ordinal |
colorDomain | string | "" | |
colorRange | menu | "" | ``, viridis, magma, turbo, cividis |
extruded | toggle | true | |
elevationAggregation | menu | "SUM" | SUM, MEAN, MIN, MAX, COUNT |
elevationScale | float | 1 | |
elevationScaleType | menu | "linear" | linear, quantile |
elevationRange | string | "0, 1000" | |
elevationDomain | string | "" | |
elevationUpperPercentile | float | 100 | |
elevationLowerPercentile | float | 0 | |
coverage | float | 1 | |
ramp | menu | "viridis" | 37 choices |
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:
grid-layer