• JMap.Event.SimpleSearch.on.error

    This event is triggered when a simple search has been processed, but an error occured.

    Parameters

    • listenerId: string

      Your listener id (must be unique)

    • fn: ((params) => void)

      Your listener function

    Returns void

    Example

    // log a message in the console if a simple search error occured
    JMap.Event.SimpleSearch.on.error(
    "custom-simple-search-error",
    params => console.log("A simple search has failed", params)
    )