Skip to main content

Interface: MapWaypointIcon<T>

An icon for a waypoint displayed on a map.

Type parameters

NameType
Textends MapWaypoint

Implemented by

Properties

priority

Readonly priority: Subscribable<number>

The render priority of this icon. Icons with higher priorities will be rendered on top of icons with lower priorities.

Defined in

src/sdk/components/map/MapWaypointIcon.ts:18


waypoint

Readonly waypoint: T

The waypoint associated with this icon.

Defined in

src/sdk/components/map/MapWaypointIcon.ts:12

Methods

draw

draw(context, mapProjection): void

Renders this icon to a canvas.

Parameters

NameTypeDescription
contextCanvasRenderingContext2DThe canvas 2D rendering context to which to render.
mapProjectionMapProjectionThe projection to use for rendering.

Returns

void

Defined in

src/sdk/components/map/MapWaypointIcon.ts:25