Skip to main content

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​

ParameterKindDefaultChoices
idfield"custom-layer"
codefield[""]
renderingModefield"3d"
beforeIdfield""
paramsfield{}

Outputs​

PortType
layervalue

Details​

  • Category: Host operators
  • Operator: CustomMapLibreLayerOp
  • Runs: on the page, not in the engine: it cannot be compiled to SQL or an expression