• JMap.User.addInfo

    Add a custom user info, stored in the redux store (JMap Cloud NG Core), and displayed in the user panel (JMap Cloud NG).

    Parameters

    Returns void

    Throws

    if info is not an object, if an attribute is missing or invalid type, if "id" already exists

    Example

    // add a user information
    JMap.User.addInfo({
    id: "role",
    label: "Role",
    value: "Inspector"
    })