Function getLayerPermission

  • Get the current user's permission for a layer (layer must be added to the current project). NB Does not work for temp layers or portfolio layers as they share a project's permission

    Parameters

    • layerName: string

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