CustomMapLibreLayer
Define a custom MapLibre GL layer with WebGL rendering. The code must return an object with onAdd, render, and onRemove methods. Access parameters via params object and map instance via map.
Syntax
{ "id": "n1", "op": "CustomMapLibreLayerOp", "name": "custom-map-libre-layer", "x": 0, "y": 0, "params": {} }
One out of it starts at "sourcePort": "layer".
Inputs
This operator has no input ports.
Parameters
| Parameter | Kind | Default | Choices |
|---|---|---|---|
id | field | "custom-layer" | |
code | field | [""] | |
renderingMode | field | "3d" | |
beforeId | field | "" | |
params | field | {} |
Outputs
| Port | Type |
|---|---|
layer | value |
Details
- Category: Host operators
- Operator:
CustomMapLibreLayerOp - Runs: on the page, not in the engine: it cannot be compiled to SQL or an expression