Skip to main content

Interface: MapWaypointRendererIconFactory<W>

A waypoint icon factory.

Type parameters

NameType
Wextends MapWaypoint

Implemented by

Methods

getIcon

getIcon<T>(role, waypoint): null | MapWaypointIcon<T>

Gets an icon for a waypoint.

Type parameters

NameType
Textends MapWaypoint

Parameters

NameTypeDescription
rolenumberThe role that was selected for the waypoint for rendering.
waypointTA waypoint.

Returns

null | MapWaypointIcon<T>

a waypoint icon.

Defined in

src/sdk/components/map/MapWaypointRenderer.ts:19