TextStyle

class TextStyle(val textColor: Int = Color.BLACK, val textSize: Double = DEFAULT_TEXT_SIZE, val fontUri: String = DEFAULT_FONT_URI, val textAnchoring: TextAnchoring = DEFAULT_TEXT_ANCHORING, val offset: PointF = DEFAULT_OFFSET)

Represents the style used to display safety locations markers.

Constructors

Link copied to clipboard
constructor(textColor: Int = Color.BLACK, textSize: Double = DEFAULT_TEXT_SIZE, fontUri: String = DEFAULT_FONT_URI, textAnchoring: TextAnchoring = DEFAULT_TEXT_ANCHORING, offset: PointF = DEFAULT_OFFSET)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The font of the speed limit text on the marker. Default font is Notosans-Regular.

Link copied to clipboard

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

Link copied to clipboard

TextAnchoring determining how the label is positioned in the Marker.

Link copied to clipboard

Text color.

Link copied to clipboard

Text size (in dp units).