FlatLabelAppearance

data class FlatLabelAppearance @JvmOverloads constructor(    val height: Float? = null,     val margin: Float? = null,     val color: String? = null,     val fontSize: Float? = null,     val scaleMin: Float? = null,     var scaleStep: Float? = null)

FlatLabelAppearance holds the appearance properties of flat labels to be set when labeling polygons

Constructors

Link copied to clipboard
fun FlatLabelAppearance(    height: Float? = null,     margin: Float? = null,     color: String? = null,     fontSize: Float? = null,     scaleMin: Float? = null,     scaleStep: Float? = null)

Properties

Link copied to clipboard
val color: String? = null

Text Color of the flat label

Link copied to clipboard
val fontSize: Float? = null

How big to make the font. Defaults to 12 (@default 12)

Link copied to clipboard
val height: Float? = null

By default this is the upper bounds of the Polygon. If you don't have a Polygon, or want a custom height for some reason, you can set this.

Link copied to clipboard
val margin: Float? = null

The amount of space to leave before starting the text (@default 5)

Link copied to clipboard
val scaleMin: Float? = null

The minimum percentage we can shrink the label to if it won't fit within the bounds at 100%. If it doesn't fit at that level, it won't be created. (@default 0.25)

Link copied to clipboard
var scaleStep: Float? = null

How much to decrement the scale each time it doesn't fit, so we don't end up with too many different font sizes on screen at once. If * you are only labeling a few Polygons rather than everything,you can set this and and scaleMin to 0.1 to fit everything except really long names perfectly.(@default 0.25)