Skip to main content

Interface: MapWaypointIcon<T>

Defined in: src/sdk/components/map/MapWaypointIcon.ts:10

An icon for a waypoint displayed on a map.

Type Parameters

Type Parameter
T extends MapWaypoint

Properties

priority

readonly priority: Subscribable<number>

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

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


waypoint

readonly waypoint: T

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

The waypoint associated with this icon.

Methods

draw()

draw(context, mapProjection): void

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

Renders this icon to a canvas.

Parameters

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

Returns

void