Type Alias TAddLabelOptions

TAddLabelOptions: {
    appearance?: TLabelAppearance;
    groupRankingByCategory?: boolean;
    interactive?: boolean;
    layer?: string;
    rank?: TCollisionRankingTier;
}

Options for creating a new Label with Labels.add.

Type declaration

  • Optionalappearance?: TLabelAppearance

    Customize the appearance of the Label and its pin

  • OptionalgroupRankingByCategory?: boolean

    Group analytics based ranking

    false
    
  • Optionalinteractive?: boolean

    Whether the Label should be clickable.

    false
    
  • Optionallayer?: string

    Optional layer to attach the Label to. If not provided, this will be empty.

  • Optionalrank?: TCollisionRankingTier

    Optional. Determines the collision ranking tier of the label, which influences its visibility in relation to other colliders. For the possible values ('medium', 'high', 'always-visible') and their impact on label visibility, see TCollisionRankingTier.