BetterRouteMarkerStyle

class BetterRouteMarkerStyle(val pinImage: Image = ImageFactory.fromResource(DEFAULT_PIN_IMAGE), @ColorInt val textColor: Int = DEFAULT_TEXT_COLOR, val textSize: Double = DEFAULT_TEXT_SIZE, val fontUri: Uri = DEFAULT_FONT_URI, val textAnchoring: TextAnchoring = DEFAULT_TEXT_ANCHORING, val textOffset: PointF = DEFAULT_TEXT_OFFSET)

Represents the style used to display the better route marker.

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

Constructors

Link copied to clipboard
constructor(pinImage: Image = ImageFactory.fromResource(DEFAULT_PIN_IMAGE), @ColorInt textColor: Int = DEFAULT_TEXT_COLOR, textSize: Double = DEFAULT_TEXT_SIZE, fontUri: Uri = DEFAULT_FONT_URI, textAnchoring: TextAnchoring = DEFAULT_TEXT_ANCHORING, textOffset: PointF = DEFAULT_TEXT_OFFSET)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The font of the better route marker text. Default font is NotoSans-Regular.

Link copied to clipboard

The image of the marker that represents a better route.

Link copied to clipboard

TextAnchoring determining how the label is positioned in the marker.

Link copied to clipboard

The color of the text shown for better route.

Link copied to clipboard

PointF describing the offset that will be used to position the label in the marker.

Link copied to clipboard

The size of the text (in dp units).

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