DynamicLabelStyle

data class DynamicLabelStyle(textStyle: StyledText.MapTextStyle, minFontSize: Int, maxFontSize: Int, labelExtent: PointF) : Parcelable

Constructors

DynamicLabelStyle
Link copied to clipboard
fun DynamicLabelStyle(textStyle: StyledText.MapTextStyle = StyledText.MapTextStyle(), minFontSize: Int = 0, maxFontSize: Int = 0, labelExtent: PointF = PointF(0.0f, 0.0f))

Functions

describeContents
Link copied to clipboard
abstract fun describeContents(): Int
writeToParcel
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

labelExtent
Link copied to clipboard
val labelExtent: PointF

Relative Extent (or Area) of the label to the parent object, over which is label drawn (thus values should be in range <0;1>)

maxFontSize
Link copied to clipboard
val maxFontSize: Int = 0

Maximal font size that will be used for drawing the label (value < 1 will result in fixed label scale, according to the textStyle)

minFontSize
Link copied to clipboard
val minFontSize: Int = 0
textStyle
Link copied to clipboard
val textStyle: StyledText.MapTextStyle

Basic text settings for the label