MarkerLabel

data class MarkerLabel(val text: String, val color: ColorRgba = ColorRgba(255, 255, 255), val size: Int = 14, val outlineColor: ColorRgba? = ColorRgba(0, 0, 0), val position: LabelPosition = LabelPosition.Above)

The text written next to a DrawnMarker.

Constructors

Link copied to clipboard
constructor(text: String, color: ColorRgba = ColorRgba(255, 255, 255), size: Int = 14, outlineColor: ColorRgba? = ColorRgba(0, 0, 0), position: LabelPosition = LabelPosition.Above)

Properties

Link copied to clipboard

the text colour; its alpha is the text's opacity.

Link copied to clipboard

the colour of the thin outline drawn around the letters so they can be read on any map, or null for none; its alpha is the outline's opacity.

Link copied to clipboard

where the text sits against the icon.

Link copied to clipboard
val size: Int

the text size, in the units of the display's text (about the height of a letter in pixels at 1x), from 6 to 96.

Link copied to clipboard

what to write; not empty.