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
readonlypriority: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
readonlywaypoint: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
| Parameter | Type | Description |
|---|---|---|
context | CanvasRenderingContext2D | The canvas 2D rendering context to which to render. |
mapProjection | MapProjection | The projection to use for rendering. |
Returns
void