Builder

class Builder

A builder for instantiating the RouteLineResources class

Constructors

Builder
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.
alternativeRouteLineScaleExpression
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.
build
Link copied to clipboard
fun build(): RouteLineResources
Creates a instance of RouteLineResources
destinationWaypointIcon
Link copied to clipboard
fun destinationWaypointIcon(@DrawableRes() resource: Int): RouteLineResources.Builder
An icon representing the destination point of a route.
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
originWaypointIcon
Link copied to clipboard
fun originWaypointIcon(@DrawableRes() resource: Int): RouteLineResources.Builder
An icon representing the origin point of a route.
restrictedRoadDashArray
Link copied to clipboard
fun restrictedRoadDashArray(dashArray: List<Double>): RouteLineResources.Builder
The dash array parameter for the restricted road layer.
restrictedRoadLineWidth
Link copied to clipboard
fun restrictedRoadLineWidth(width: Double): RouteLineResources.Builder
The width of the restricted road line
restrictedRoadOpacity
Link copied to clipboard
fun restrictedRoadOpacity(opacity: Double): RouteLineResources.Builder
The opacity for the restricted road line.
roundedLineCap
Link copied to clipboard
fun roundedLineCap(roundLineCap: Boolean): RouteLineResources.Builder
Indicates if the endpoints of the route line have rounded line cap.
routeCasingLineScaleExpression
Link copied to clipboard
fun routeCasingLineScaleExpression(expression: Expression): RouteLineResources.Builder
An expression that will define the scaling behavior of the route casing line.
routeLineColorResources
Link copied to clipboard
fun routeLineColorResources(routeLineColorResources: RouteLineColorResources): RouteLineResources.Builder
The route line color resources to use.
routeLineScaleExpression
Link copied to clipboard
fun routeLineScaleExpression(expression: Expression): RouteLineResources.Builder
An expression that will define the scaling behavior of the route line.
routeTrafficLineScaleExpression
Link copied to clipboard
fun routeTrafficLineScaleExpression(expression: Expression): RouteLineResources.Builder
An expression that will define the scaling behavior of the route traffic line.
toString
Link copied to clipboard
open fun toString(): String
trafficBackfillRoadClasses
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.