Interface: MapTextLabel
Defined in: src/sdk/components/map/MapTextLabel.ts:12
A text label to be displayed on a map.
Extended by
Properties
priority
readonlypriority:Subscribable<number>
Defined in: src/sdk/components/map/MapTextLabel.ts:20
The render priority of this label. Higher numbers will render on top of labels with lower numbers when used with a MapCullableTextLabelManager.
text
readonlytext:Subscribable<string>
Defined in: src/sdk/components/map/MapTextLabel.ts:14
The text of this label.
Methods
draw()
draw(
context,mapProjection):void
Defined in: src/sdk/components/map/MapTextLabel.ts:27
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