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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
host | EffectsHost |
Returns
Section titled “Returns”void
Throws
Section titled “Throws”when a different host is already registered — two effect runtimes on one page would race for the same layers.