Class FloatingLabel

A floating label that is attached to a node or coordinate on the map.

Hierarchy

  • FloatingLabel

Accessors

  • get id(): string
  • The ID of this label.

    Returns string

  • get rank(): number
  • The collision rank of this label.

    Returns number

  • get text(): undefined | string
  • The text of this label.

    Returns undefined | string

Methods

  • Object representation of this label.

    Returns {
        appearance: Required<TFloatingLabelAppearance>;
        id: string;
        nodeOrCoordinate: any;
        rank: number;
        text: undefined | string;
    }