LegacyLabelInternal

data class LegacyLabelInternal(legacyLabels: Boolean, text: String, height: Float?, margin: Float?, color: String?, fontSize: Float?, scaleMin: Float?, scaleStep: Float?) : MPIOptions.AbstractLegacyLabel

LegacyLabelInternal exposes the legacy labels flag to be true internally while setting legacy labels to polygons

Constructors

LegacyLabelInternal
Link copied to clipboard
fun LegacyLabelInternal(legacyLabels: Boolean, text: String, 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(): Boolean
component2
Link copied to clipboard
operator fun component2(): String
component3
Link copied to clipboard
operator fun component3(): Float?
component4
Link copied to clipboard
operator fun component4(): Float?
component5
Link copied to clipboard
operator fun component5(): String?
component6
Link copied to clipboard
operator fun component6(): Float?
component7
Link copied to clipboard
operator fun component7(): Float?
component8
Link copied to clipboard
operator fun component8(): Float?
copy
Link copied to clipboard
fun copy(legacyLabels: Boolean, text: String, height: Float? = null, margin: Float? = null, color: String? = null, fontSize: Float? = null, scaleMin: Float? = null, scaleStep: Float? = null): MPIOptions.LegacyLabelInternal
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
open override val color: String? = null
Text Color
fontSize
Link copied to clipboard
open override val fontSize: Float? = null
How big to make the font.
height
Link copied to clipboard
open override val height: Float? = null
By default this is the upper bounds of the Polygon.
legacyLabels
Link copied to clipboard
var legacyLabels: Boolean
margin
Link copied to clipboard
open override val margin: Float? = null
The amount of space to leave before starting the text
scaleMin
Link copied to clipboard
open override 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
open override val 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.
text
Link copied to clipboard
open override val text: String
Label text