MapboxTurnIconsApi

class MapboxTurnIconsApi(var turnIconResources: TurnIconResources)

An API for generating turn icon drawable resource references.

Parameters

turnIconResources

a TurnIconResources reference

Constructors

Link copied to clipboard
constructor(turnIconResources: TurnIconResources)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun generateTurnIcon(type: String?, degrees: Float?, modifier: String?, drivingSide: String?): Expected<TurnIconError, ManeuverTurnIcon>

Returns a reference to a drawable for turn icons.

Link copied to clipboard

Invoke the method if there is a need to use other turn icon drawables than the default icons supplied.