Function getLayerPermission

  • Get the current user's permission for a layer (layer must be added to the open project).

    Parameters

    • layerName: string

    Returns Promise<"admin" | "edit" | "view">