Interface: MapTextLabel
A text label to be displayed on a map.
Hierarchy
MapTextLabel
Implemented by
Properties
priority
• Readonly
priority: Subscribable
<number
>
The render priority of this label. Higher numbers will render on top of labels with lower numbers when used with a MapCullableTextLabelManager.
Defined in
src/sdk/components/map/MapTextLabel.ts:19
text
• Readonly
text: Subscribable
<string
>
The text of this label.
Defined in
src/sdk/components/map/MapTextLabel.ts:13
Methods
draw
▸ draw(context
, mapProjection
): void
Draws this label to a canvas.
Parameters
Name | Type | Description |
---|---|---|
context | CanvasRenderingContext2D | The canvas rendering context to use to draw. |
mapProjection | MapProjection | The projection to use to project the location of the label. |
Returns
void
Defined in
src/sdk/components/map/MapTextLabel.ts:26