Builder
A builder used to create instance of MapboxRouteLineViewOptions.
Parameters
context
Constructors
Functions
Creates an instance of MapboxRouteLineViewOptions.
The drawable id for representing the destination icon.
Indicates if the route line will display restricted road sections with a dashed line. Note that in order for restricted sections to be displayed, you also need to set MapboxRouteLineApiOptions.calculateRestrictedRoadSections to true, so that the necessary data is calculated. You can have a set-up when some of your MapboxRouteLineViews display the restricted sections and the other don't. I that case set MapboxRouteLineViewOptions.displayRestrictedRoadSections to true for those views that will display restricted sections and set MapboxRouteLineApiOptions.calculateRestrictedRoadSections to true if at least one of your views will display them.
Determines if the color transition between traffic congestion changes should use a soft gradient appearance or abrupt color change. This is false by default.
Configuration for fading out of the route line. See FadingConfig for details. If not set or set it null, the route line will be fully opaque at all zoom levels. NOTE: this property guards fading out the route line on transition from a lower to a higher zoom level, meaning that FadingConfig.startFadingZoom must be less than or equal to FadingConfig.finishFadingZoom.
The pitch alignment value used for waypoint icons. The default is IconPitchAlignment.MAP.
Factor that decreases line layer opacity based on occlusion from 3D objects. Value 0 disables occlusion, value 1 means fully occluded.
The drawable id for representing the origin icon.
The dash array for the LineLayer used for displaying restricted roads.
The width of the restricted road LineLayer.
The opacity of the restricted road LineLayer.
Determines the elevation of the route layers. Note that if you are using Mapbox Standard style, you can only specify a layer id that is added at runtime: static layer ids from the style will not be applied.
An instance of RouteLineColorResources. Contains information about colors used for route line.
An instance of RouteLineScaleExpressions. Contains information about custom scaling expressions.
Enable route line's GeoJson source data sharing between multiple instances of the map. If this option is enabled for multiple instances of MapboxRouteLineViews that are used to draw route lines on multiple maps at the same time, they will all share the GeoJson source to optimize execution time of updates and decrease the memory footprint. Enable only for instances that should share the geometry of the lines, leave disabled for instances that should draw geometries distinct from other instances.
The slot name to use for route line position in the layer stack.
Influences the length of the color transition when the displaySoftGradientForTraffic parameter is true.
The tolerance value used when configuring the underlying map source.
The anchor value, the default is IconAnchor.CENTER.
The list of offset values for waypoint icons.