MapboxSignboardApi
class MapboxSignboardApi @JvmOverloads constructor(parser: SvgToBitmapParser, options: MapboxSignboardOptions = MapboxSignboardOptions.Builder().build())
Content copied to clipboard
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())
Content copied to clipboard
Link copied to clipboard
fun MapboxSignboardApi(parser: SvgToBitmapParser, options: MapboxSignboardOptions = MapboxSignboardOptions.Builder().build())
Content copied to clipboard
Functions
Link copied to clipboard
fun generateSignboard(instructions: BannerInstructions, consumer: MapboxNavigationConsumer<Expected<SignboardError, SignboardValue>>)
Content copied to clipboard
The method takes in BannerInstructions and generates a signboard based on the presence of BannerComponents of type BannerComponents.GUIDANCE_VIEW and subType BannerComponents.SIGNBOARD