RouteArrowOptions

class RouteArrowOptions

Options for determining the appearance of maneuver arrow(s)

Parameters

arrowColor

the color of the arrow shaft

arrowCasingColor

the color of the arrow shaft border

arrowHeadIcon

the drawable to represent the arrow head

arrowHeadIconCasing

the drawable to represent the arrow head border

aboveLayerId

indicates the maneuver arrow map layers appear above this layer on the map

tolerance

the tolerance value used when configuring the underlying map source

arrowShaftScaleExpression

an Expression governing the scaling of the maneuver arrow shaft

arrowShaftCasingScaleExpression

an Expression governing the scaling of the maneuver arrow shaft casing

arrowHeadScaleExpression

an Expression governing the scaling of the maneuver arrow head

arrowHeadCasingScaleExpression

an Expression governing the scaling of the maneuver arrow head casing

slotName

determines the elevation of the route layers. The route line will default to the MIDDLE slot. To change, add your own custom slot before route arrow initialization and provide the slot name as a option here. see https://docs.mapbox.com/style-spec/reference/slots/ and StyleManager.getStyleSlots

Types

Link copied to clipboard
class Builder

Used for instantiating the RouteArrowOptions class.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Indicates whether some other object is "equal to" this one.

Link copied to clipboard
open override fun hashCode(): Int

Returns a hash code value for the object.

Link copied to clipboard
fun toBuilder(context: Context): RouteArrowOptions.Builder
Link copied to clipboard
open override fun toString(): String

Returns a string representation of the object.

Properties

Link copied to clipboard
val aboveLayerId: String
Link copied to clipboard
val arrowCasingColor: Int
Link copied to clipboard
val arrowColor: Int
Link copied to clipboard
val arrowHeadCasingScaleExpression: Expression
Link copied to clipboard
val arrowHeadIcon: Drawable
Link copied to clipboard
val arrowHeadIconCasing: Drawable
Link copied to clipboard
val arrowHeadScaleExpression: Expression
Link copied to clipboard
val arrowShaftCasingScaleExpression: Expression
Link copied to clipboard
val arrowShaftScaleExpression: Expression
Link copied to clipboard
val slotName: String
Link copied to clipboard
val tolerance: Double