updateDynamicOptions

Update a subset of route line options.

Parameters

style

a style which the new options should be applied to

dynamicOptionsBlock

a lambda that updates the necessary options, see MapboxRouteLineViewDynamicOptionsBuilderBlock.

Note that updating options doesn't re-render anything automatically. For these options to be applied, you need to do the following:

mapboxRouteLineView.updateDynamicOptions(style, builderBlock)
mapboxRouteLineApi.getRouteDrawData {
mapboxRouteLineView.renderRouteDrawData(style, it)
}