FormattedSection

fun FormattedSection(text: String, fontScale: Double? = null, fontStack: List<String>? = null, textColor: String? = null)

Parameters

text

displayed string

fontScale

scale of the font, setting to null will fall back to style's default settings

fontStack

main and fallback fonts that are a part of the style, setting null will fall back to style's default settings. The requested font stack has to be a part of the used style. For more information see The online documentationhttps://www.mapbox.com/help/define-font-stack/).

textColor

text color, setting to null will fall back to style's default settings. Value of red, green, blue components must range between 0 and 255, an alpha component must range between 0 and 1.

For more information see The online documentationhttps://docs.mapbox.com/mapbox-gl-js/style-spec/#types-color).