FloatingLabelAppearance

@Serializable
data class FloatingLabelAppearance @JvmOverloads constructor(val margin: Double? = 6.0, val text: MPIOptions.FloatingLabelAppearance.Text? = null, val marker: MPIOptions.FloatingLabelAppearance.Marker? = null)

FloatingLabelAppearance holds the appearance properties of floating labels to be set when labeling polygons

Constructors

Link copied to clipboard

Types

Link copied to clipboard
@Serializable
data class Color @JvmOverloads constructor(val active: String? = null, val inactive: String? = null)
Link copied to clipboard
object Companion
Link copied to clipboard
@Serializable
data class Marker @JvmOverloads constructor(val size: Double? = null, val foregroundColor: MPIOptions.FloatingLabelAppearance.Color? = null, val backgroundColor: MPIOptions.FloatingLabelAppearance.Color? = null, val icon: String? = null, val iconVisibilityThreshold: Double? = null, val iconFit: MPIOptions.FLOATING_LABEL_MARKER_ICON_FIT? = null, val iconPadding: Double = 4.0, val iconScaleInterpolation: Boolean? = null, val iconSize: Double? = 10.0)
Link copied to clipboard
@Serializable
data class Text @JvmOverloads constructor(val numLines: Int? = null, val size: Double? = null, val maxWidth: Double? = null, val foregroundColor: String? = null, val backgroundColor: String? = null)

Properties

Link copied to clipboard
val margin: Double? = 6.0

Margin around the label and marker. This will affect label density

Link copied to clipboard
Link copied to clipboard

Text appearance