MapboxSignboardApi

class MapboxSignboardApi @JvmOverloads constructor(parser: SvgToBitmapParser, options: MapboxSignboardOptions = MapboxSignboardOptions.Builder().build())

Mapbox Signboard Api allows you to generate signboard for select maneuvers. By default uses the MapboxExternalFileResolver. Check out MapboxExternalFileResolver.resolveFont to know how css style's fonts are treated

Constructors

Link copied to clipboard
fun MapboxSignboardApi(applicationContext: Context, options: MapboxSignboardOptions = MapboxSignboardOptions.Builder().build())
Link copied to clipboard
fun MapboxSignboardApi(parser: SvgToBitmapParser, options: MapboxSignboardOptions = MapboxSignboardOptions.Builder().build())

Functions

Link copied to clipboard
fun cancelAll()

Invoke the method to cancel all ongoing requests to generate a signboard.

Link copied to clipboard
fun generateSignboard(instructions: BannerInstructions, consumer: MapboxNavigationConsumer<Expected<SignboardError, SignboardValue>>)

The method takes in BannerInstructions and generates a signboard based on the presence of BannerComponents of type BannerComponents.GUIDANCE_VIEW and subType BannerComponents.SIGNBOARD