Interface HonuaLayerProps

Props for HonuaLayer.

interface HonuaLayerProps {
    layer: RuntimeLayerSpecification;
    onError?: ((error: unknown) => void);
    order?: RuntimeLayerOrder;
    source?: HonuaLayerSource;
}

Properties

The MapLibre-shaped runtime layer specification. Its id must be stable.

onError?: ((error: unknown) => void)

Called if adding/removing the layer or source throws.

Insertion order (e.g. { beforeId }).

Optional source to add before the layer. Removed on unmount only if this component added it (i.e. it was not already present on the runtime).