Skip to content

registerEffectsHost

registerEffectsHost(host): void

Defined in: packages/core/src/effects-host.ts:105

Register the effects host. Called by @maplibre-yaml/effects/register; hosts never need to call it themselves.

ParameterType
hostEffectsHost

void

when a different host is already registered — two effect runtimes on one page would race for the same layers.