FIMViz.jsAPI
    Preparing search index...

    Function connectToast

    • Subscribe a toast to the engine's user-facing host events (the host wires this — the engine never reaches for the UI). notify maps its levels (info/warn/error/success) onto toast levels; layer:raster-oversized and layer:crs-unrenderable become warnings, since both describe something visibly wrong with what was just drawn.

      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 } = {}

        warnings:false keeps this to notify only

      Returns {
          clear: () => void;
          destroy: () => void;
          el: Element;
          show: (msg: string, o?: { level?: string; timeout?: number }) => Element;
      } & { off: () => void }

      the toast, plus an unsubscribe