BetterRouteStyle

class BetterRouteStyle(val lineWidth: List<WidthByZoom> = DEFAULT_LINE_WIDTH, val outlineWidth: List<WidthByZoom> = DEFAULT_OUTLINE_WIDTH, @ColorInt val lineColor: Int = DEFAULT_LINE_COLOR, val markerStyle: BetterRouteMarkerStyle = BetterRouteMarkerStyle(), val isMarkerVisible: Boolean = DEFAULT_MARKER_VISIBILITY)

Represents the style used to display the better route.

Important: This is a Public Preview API. It may be changed or removed at any time.

Constructors

Link copied to clipboard
constructor(lineWidth: List<WidthByZoom> = DEFAULT_LINE_WIDTH, outlineWidth: List<WidthByZoom> = DEFAULT_OUTLINE_WIDTH, @ColorInt lineColor: Int = DEFAULT_LINE_COLOR, markerStyle: BetterRouteMarkerStyle = BetterRouteMarkerStyle(), isMarkerVisible: Boolean = DEFAULT_MARKER_VISIBILITY)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Determines if the better route marker is visible. Default value is true.

Link copied to clipboard

The color of the better route tube. You can control the route line's opacity by using the alpha component of the ARGB color integer.

Link copied to clipboard

The width (in dp units) for the line for a better route tube. This parameter must be a non-empty list containing non-negative values for both the width and the zoom level where the width is used. Items in this list must not contain duplicated zoom level values.

Link copied to clipboard

The better route marker style.

Link copied to clipboard

The width (in dp units) of the line's outline for better route tube. This parameter must be a non-empty list containing non-negative values for both the width and the zoom level where the width is used. Items in this list must not contain duplicated zoom level values.

Functions

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