Label

data class Label @JvmOverloads() constructor(activeColor: String?, inactiveColor: String?, maxTextDivWidth: Double?, minTextDivWidth: Double?, markerSize: Double?, textSize: Double?, color: String?, textLines: Double?, text: String, shortText: String?, stateText: String?, rank: Double?, appearance: MPIOptions.LabelAppearance?)

Label holds the properties of smart labels to be set when setting labels to polygons

Constructors

Label
Link copied to clipboard
fun Label(activeColor: String? = null, inactiveColor: String? = null, maxTextDivWidth: Double? = null, minTextDivWidth: Double? = null, markerSize: Double? = null, textSize: Double? = null, color: String? = null, textLines: Double? = null, text: String, shortText: String? = null, stateText: String? = null, rank: Double? = null, appearance: MPIOptions.LabelAppearance? = null)

Functions

component1
Link copied to clipboard
operator fun component1(): String?
component10
Link copied to clipboard
operator fun component10(): String?
component11
Link copied to clipboard
operator fun component11(): String?
component12
Link copied to clipboard
operator fun component12(): Double?
component13
Link copied to clipboard
operator fun component13(): MPIOptions.LabelAppearance?
component2
Link copied to clipboard
operator fun component2(): String?
component3
Link copied to clipboard
operator fun component3(): Double?
component4
Link copied to clipboard
operator fun component4(): Double?
component5
Link copied to clipboard
operator fun component5(): Double?
component6
Link copied to clipboard
operator fun component6(): Double?
component7
Link copied to clipboard
operator fun component7(): String?
component8
Link copied to clipboard
operator fun component8(): Double?
component9
Link copied to clipboard
operator fun component9(): String
copy
Link copied to clipboard
fun copy(activeColor: String? = null, inactiveColor: String? = null, maxTextDivWidth: Double? = null, minTextDivWidth: Double? = null, markerSize: Double? = null, textSize: Double? = null, color: String? = null, textLines: Double? = null, text: String, shortText: String? = null, stateText: String? = null, rank: Double? = null, appearance: MPIOptions.LabelAppearance? = null): MPIOptions.Label
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

activeColor
Link copied to clipboard
val activeColor: String? = null
active color of the label
appearance
Link copied to clipboard
val appearance: MPIOptions.LabelAppearance? = null
Control the appearance of smart labels
color
Link copied to clipboard
val color: String? = null
color of the label
inactiveColor
Link copied to clipboard
val inactiveColor: String? = null
inactive color of the label
markerSize
Link copied to clipboard
val markerSize: Double? = null
marker size of the label
maxTextDivWidth
Link copied to clipboard
val maxTextDivWidth: Double? = null
maximum text width
minTextDivWidth
Link copied to clipboard
val minTextDivWidth: Double? = null
minimum text width
rank
Link copied to clipboard
val rank: Double? = null
rank of the label
shortText
Link copied to clipboard
val shortText: String? = null
short text to display for the label
stateText
Link copied to clipboard
val stateText: String? = null
state text to display for the label
text
Link copied to clipboard
val text: String
text to display for the label
textLines
Link copied to clipboard
val textLines: Double? = null
number of text lines for a label
textSize
Link copied to clipboard
val textSize: Double? = null
size of the text to display for the label