Builder

class Builder

A builder for instantiating the RouteLineResources class

Constructors

Link copied to clipboard
fun Builder()

Functions

fun alternativeRouteCasingLineScaleExpression(expression: Expression): RouteLineResources.Builder

An expression that will define the scaling behavior of the alternative route casing line.

Link copied to clipboard
fun alternativeRouteLineScaleExpression(expression: Expression): RouteLineResources.Builder

An expression that will define the scaling behavior of the alternative route line.

fun alternativeRouteTrafficLineScaleExpression(expression: Expression): RouteLineResources.Builder

An expression that will define the scaling behavior of the alternative route traffic line.

Link copied to clipboard
fun build(): RouteLineResources

Creates a instance of RouteLineResources

Link copied to clipboard
fun destinationWaypointIcon(@DrawableRes resource: Int): RouteLineResources.Builder

An icon representing the destination point of a route.

Link copied to clipboard
fun originWaypointIcon(@DrawableRes resource: Int): RouteLineResources.Builder

An icon representing the origin point of a route.

Link copied to clipboard
fun restrictedRoadDashArray(dashArray: List<Double>): RouteLineResources.Builder

The dash array parameter for the restricted road layer. See LineLayer LineDashArray for more information. An empty list will show a solid line. The default is .5, 2.0

Link copied to clipboard
fun restrictedRoadLineWidth(width: Double): RouteLineResources.Builder

The width of the restricted road line

Link copied to clipboard
fun restrictedRoadOpacity(opacity: Double): RouteLineResources.Builder

The opacity for the restricted road line. The default is 1.0.

Link copied to clipboard
fun roundedLineCap(roundLineCap: Boolean): RouteLineResources.Builder

Indicates if the endpoints of the route line have rounded line cap.

Link copied to clipboard
fun routeCasingLineScaleExpression(expression: Expression): RouteLineResources.Builder

An expression that will define the scaling behavior of the route casing line.

Link copied to clipboard
fun routeLineColorResources(routeLineColorResources: RouteLineColorResources): RouteLineResources.Builder

The route line color resources to use.

Link copied to clipboard
fun routeLineScaleExpression(expression: Expression): RouteLineResources.Builder

An expression that will define the scaling behavior of the route line.

Link copied to clipboard
fun routeTrafficLineScaleExpression(expression: Expression): RouteLineResources.Builder

An expression that will define the scaling behavior of the route traffic line.

Link copied to clipboard
fun trafficBackfillRoadClasses(roadClasses: List<String>): RouteLineResources.Builder

For map styles that have been configured to substitute the low traffic congestion color for unknown traffic conditions for specified road classes, the same road classes can be specified here to make the same substitution on the route line.