SpeedLimitWidget

@MapboxExperimental
class SpeedLimitWidget : BitmapWidget

Widget to display a speed limit sign on the map.

Constructors

Link copied to clipboard
constructor(initialSignFormat: SpeedLimitSign = SpeedLimitSign.MUTCD)

The sign and its margins are drawn at their size in pixels. The SDK's own speed limit renderer scales them to the head unit density.

Functions

Link copied to clipboard
open override fun getPosition(): WidgetPosition
Link copied to clipboard
open override fun getRotation(): Float
Link copied to clipboard
open override fun setPosition(widgetPosition: WidgetPosition)
Link copied to clipboard
open override fun setRotation(angleDegrees: Float)
Link copied to clipboard
fun update(signFormat: SpeedLimitSign?, threshold: Int)
fun update(speedLimit: Int?, speed: Int, signFormat: SpeedLimitSign?, threshold: Int)
Link copied to clipboard
fun updateBitmap(bitmap: Bitmap)