FormatSectionBuilder

Builder for a Formatted Section.

class FormatSectionBuilder(content: Expression)

Parameters

content

the content of the FormattedSection as a text string literal or an image as Expression

Constructors

FormatSectionBuilder
Link copied to clipboard

the content of the FormattedSection as a text string literal or an image as Expression

fun FormatSectionBuilder(content: Expression)

Functions

build
Link copied to clipboard

Build a list of expressions as one format section.

fun build(): List<Expression>
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
fontScale
Link copied to clipboard

If set, the font-scale argument specifies a scaling factor relative to the text-size specified in the root layout properties.

<p> "font-scale" is required to be of a resulting type number.

fun fontScale(fontScale: Expression): Expression.FormatSectionBuilder
fun fontScale(fontScale: Double): Expression.FormatSectionBuilder
fun fontScale(block: Expression.ExpressionBuilder.() -> Unit): Expression.FormatSectionBuilder
hashCode
Link copied to clipboard
open override fun hashCode(): Int
textColor
Link copied to clipboard

If set, the text-color argument overrides the color specified by the root paint properties.

fun textColor(textColor: Expression): Expression.FormatSectionBuilder
fun textColor(block: Expression.ExpressionBuilder.() -> Unit): Expression.FormatSectionBuilder
fun textColor(textColor: Int): Expression.FormatSectionBuilder
fun textColor(textColor: String): Expression.FormatSectionBuilder
textFont
Link copied to clipboard

If set, the text-font argument overrides the font specified by the root layout properties.

<p> "text-font" is required to be a literal array. <p> The requested font stack has to be a part of the used style. For more information see [The online documentation](https://www.mapbox.com/help/define-font-stack/).

fun textFont(textFont: Expression): Expression.FormatSectionBuilder
fun textFont(block: Expression.ExpressionBuilder.() -> Unit): Expression.FormatSectionBuilder
fun textFont(textFont: List<String>): Expression.FormatSectionBuilder
toString
Link copied to clipboard
open override fun toString(): String