Skip to main content

Speed limits options

The Navigation SDK UX Framework allows customizing speed limits widget on the map, so we can hide the speed warning (a part of the widget with the current speed) or the whole widget at all.

val config = DashConfig.create(
applicationContext = applicationContext,
accessToken = getString(R.string.mapbox_access_token)
) {
speedLimitsOptionsConfig {
showSpeedLimits = true
showSpeedWarnings = true
}
}
Dash.init(config)

It is also possible to update these options in the runtime:

Dash.applyUpdate {
routeOptionsConfig {
showSpeedLimits = false
showSpeedWarnings = false
}
}
Was this page helpful?