跳到主要内容

flywave-mapview.tile.addtextelement

Home > @flywave/flywave-mapview > Tile > addTextElement

Tile.addTextElement() method

Adds a to this Tile, which is added to the visible set of s based on the capacity and visibility.

Signature:

addTextElement(textElement: TextElement): void;

Parameters

Parameter

Type

Description

textElement

TextElement

The TextElement to add.

Returns:



void

## Remarks

The 's priority controls if or when it becomes visible.

To ensure that a TextElement is visible, use a high value for its priority, such as `TextElement.HIGHEST_PRIORITY`<!-- -->. Since the number of visible TextElements is limited by the screen space, not all TextElements are visible at all times.