public static class Expression.FormatOption
extends java.lang.Object
Expression.formatEntry(Expression, FormatOption...)
that builds
a Expression.format(FormatEntry...)
expression.
If an option is not set, it defaults to the base value defined for the symbol.
Modifier and Type | Method and Description |
---|---|
static Expression.FormatOption |
formatFontScale(double scale)
If set, the font-scale argument specifies a scaling factor relative to the text-size
specified in the root layout properties.
|
static Expression.FormatOption |
formatFontScale(Expression expression)
If set, the font-scale argument specifies a scaling factor relative to the text-size
specified in the root layout properties.
|
static Expression.FormatOption |
formatTextColor(Expression expression)
If set, the text-color argument overrides the color specified by the root paint properties.
|
static Expression.FormatOption |
formatTextColor(int color)
If set, the text-color argument overrides the color specified by the root paint properties.
|
static Expression.FormatOption |
formatTextFont(Expression expression)
If set, the text-font argument overrides the font specified by the root layout properties.
|
static Expression.FormatOption |
formatTextFont(java.lang.String[] fontStack)
If set, the text-font argument overrides the font specified by the root layout properties.
|
public static Expression.FormatOption formatFontScale(Expression expression)
"font-scale" is required to be of a resulting type number.
expression
- expressionpublic static Expression.FormatOption formatFontScale(double scale)
"font-scale" is required to be of a resulting type number.
scale
- valuepublic static Expression.FormatOption formatTextFont(Expression expression)
"text-font" is required to be a literal array.
The requested font stack has to be a part of the used style. For more information see the documentation.
expression
- expressionpublic static Expression.FormatOption formatTextFont(java.lang.String[] fontStack)
"text-font" is required to be a literal array.
The requested font stack has to be a part of the used style. For more information see the documentation.
fontStack
- valuepublic static Expression.FormatOption formatTextColor(Expression expression)
expression
- expressionpublic static Expression.FormatOption formatTextColor(int color)
color
- value© 2015–2019 Mapbox. All rights reserved.