Skip to main content

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

ParameterTypeDescription
contextCanvasRenderingContext2DThe canvas rendering context to use to draw.
mapProjectionMapProjectionThe projection to use to project the location of the label.

Returns

void