Label

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

Represents Marker label, including all the label specific attributes.

Constructors

Link copied to clipboard
constructor(text: String, @ColorInt textColor: Int = 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, @ColorInt outlineColor: Int = Color.BLACK, @FloatRange(from = 0.0) outlineWidth: Double = DEFAULT_OUTLINE_WIDTH)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

Width of the text outline.

Link copied to clipboard

Text of the Label.

Link copied to clipboard

TextAnchoring determining how the label is positioned in the Marker.

Link copied to clipboard

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

Link copied to clipboard

Text size (in dp units) of the Label.