Skip to main content

Interface: MapTextLabel

A text label to be displayed on a map.

Hierarchy

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

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

Returns

void

Defined in

src/sdk/components/map/MapTextLabel.ts:26