• JMap.User.addInfo

    Add a custom user info, stored in the redux store (JMap Server NG Core), and displayed in the user panel (JMap Server 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"
    })