Label

fun Label(text: String, textColor: Color = Color.BLACK, @FloatRange(from = 0.0, fromInclusive = false) @Dimension(unit = 0) textSize: Double = DEFAULT_TEXT_SIZE, fontUri: Uri = DEFAULT_FONT_URI, textAnchoring: TextAnchoring = DEFAULT_TEXT_ANCHORING, offset: PointF = DEFAULT_OFFSET, outlineColor: Color = Color.BLACK, @FloatRange(from = 0.0) outlineWidth: Double = DEFAULT_OUTLINE_WIDTH)

Parameters

text

Text of the Label.

textColor

Text color of the Label. The alpha will be ignored and set to fully opaque.

textSize

Text size (in dp units) of the Label.

fontUri

Uri of the font that will be used for the text rendering.

textAnchoring

TextAnchoring determining how the label is positioned in the Marker.

offset

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

outlineColor

Outline color for the text. The alpha will be ignored and set to fully opaque.

outlineWidth

Width of the text outline.