メインコンテンツまでスキップ

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.

Dash.init(
applicationContext = applicationContext,
accessToken = getString(R.string.mapbox_access_token)
) {
speedLimitsOptions {
showSpeedLimits = true
showSpeedWarnings = true
}
}

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

Dash.applyUpdate {
routeOptions {
showSpeedLimits = false
showSpeedWarnings = false
}
}
この{Type}は役に立ちましたか?