• JMap.Event.Geocoding.on.error

    This event is triggered when a geocoding 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 geocoding search error occured
    JMap.Event.Geocoding.on.error(
    "custom-geocoding-error",
    params => console.log("A geocoding search has failed", params)
    )