Interface: MapTextLabel
Defined in: src/sdk/components/map/MapTextLabel.ts:11
A text label to be displayed on a map.
Extended by
Properties
priority
readonly
priority:Subscribable
<number
>
Defined in: src/sdk/components/map/MapTextLabel.ts:19
The render priority of this label. Higher numbers will render on top of labels with lower numbers when used with a MapCullableTextLabelManager.
text
readonly
text:Subscribable
<string
>
Defined in: src/sdk/components/map/MapTextLabel.ts:13
The text of this label.
Methods
draw()
draw(
context
,mapProjection
):void
Defined in: src/sdk/components/map/MapTextLabel.ts:26
Draws this label to a canvas.
Parameters
Parameter | 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