MapboxRouteLineOptions
Options for the configuration and appearance of the route line.
Parameters
an instance of RouteLineResources
a collection of RouteStyleDescriptor objects
the drawable for representing the origin icon
the drawable for representing the destination icon
determines the elevation of the route layers
an instance of the VanishingRouteLine
the tolerance value used when configuring the underlying map source
indicates if the route line will display restricted road sections with a dashed line
enabling this feature will change the color of the route legs that aren't currently being navigated. See RouteLineColorResources to specify the color used. Enabling this feature when vanishingRouteLine is enabled can have negative performance implications, especially for long routes.
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.
can be used to decrease the frequency of the vanishing route line updates improving the performance at the expense of visual appearance of the vanishing point on the line during navigation.
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
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.