• JMap.Event.MapContext.on.applyError

    This event is triggered when an error occurs while applying a map-context.

    Parameters

    • listenerId: string

      Your listener id (must be unique)

    • fn: ((params) => void)

      Your listener function

    Returns void

    Example

    // Triggered after a map-context error occurs
    JMap.Event.MapContext.on.applyError("my-apply-error-listener", params => {
    console.info(`An error occured while applying map context id="${params.context.title}"`, params.context)
    })