Parameters
- fim: FimMap | { off?: Function; on: Function }
Optionaltoast: {
clear: () => void;
destroy: () => void;
el: Element;
show: (msg: string, o?: { level?: string; timeout?: number }) => Element;
}
Optionalopts: { warnings?: boolean } = {}
Returns {
clear: () => void;
destroy: () => void;
el: Element;
show: (msg: string, o?: { level?: string; timeout?: number }) => Element;
} & { off: () => void }
the toast, plus an unsubscribe
Subscribe a toast to the engine's user-facing host events (the host wires this — the engine never reaches for the UI).
notifymaps its levels (info/warn/error/success) onto toast levels;layer:raster-oversizedandlayer:crs-unrenderablebecome warnings, since both describe something visibly wrong with what was just drawn.