MapboxRouteLineViewOptions
Options for configuration of MapboxRouteLineView.
Parameters
context
an instance of RouteLineColorResources containing color information
an instance of RouteLineScaleExpressions containing custom scaling expressions
the dash array for the LineLayer used for displaying restricted roads
the opacity of the restricted road LineLayer
the width of the restricted road LineLayer
determines if the color transition between traffic congestion changes should use a soft gradient appearance or abrupt color change. This is false by default.
influences the length of the color transition when the displaySoftGradientForTraffic parameter is true.
an icon representing the origin point of a route
an icon representing the destination point of a route
the list of offset values for waypoint icons
the anchor value, the default is IconAnchor.CENTER
the pitch alignment value used for waypoint icons. The default is IconPitchAlignment.MAP
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 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.
the tolerance value used when configuring the underlying map source
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.
factor that decreases line layer opacity based on occlusion from 3D objects. Value 0 disables occlusion, value 1 means fully occluded.
Types
A builder used to create instance of MapboxRouteLineViewOptions.