Interface: MapWaypointIcon<T>
An icon for a waypoint displayed on a map.
Type parameters
Name | Type |
---|---|
T | extends 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
Name | Type | Description |
---|---|---|
context | CanvasRenderingContext2D | The canvas 2D rendering context to which to render. |
mapProjection | MapProjection | The projection to use for rendering. |
Returns
void
Defined in
src/sdk/components/map/MapWaypointIcon.ts:25