FlatLabelAppearance

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

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

Constructors

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

Functions

component1
Link copied to clipboard
operator fun component1(): Float?
component2
Link copied to clipboard
operator fun component2(): Float?
component3
Link copied to clipboard
operator fun component3(): String?
component4
Link copied to clipboard
operator fun component4(): Float?
component5
Link copied to clipboard
operator fun component5(): Float?
component6
Link copied to clipboard
operator fun component6(): Float?
copy
Link copied to clipboard
fun copy(height: Float? = null, margin: Float? = null, color: String? = null, fontSize: Float? = null, scaleMin: Float? = null, scaleStep: Float? = null): MPIOptions.FlatLabelAppearance
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

color
Link copied to clipboard
val color: String? = null
Text Color of the flat label
fontSize
Link copied to clipboard
val fontSize: Float? = null
How big to make the font.
height
Link copied to clipboard
val height: Float? = null
By default this is the upper bounds of the Polygon.
margin
Link copied to clipboard
val margin: Float? = null
The amount of space to leave before starting the text (@default 5)
scaleMin
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%.
scaleStep
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.