Class Expression.FormatOption
java.lang.Object
com.trimblemaps.mapsdk.style.expressions.Expression.FormatOption
- Enclosing class:
- Expression
Holds format options used in a
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.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Expression.FormatOptionformatFontScale(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.FormatOptionformatFontScale(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.FormatOptionformatTextColor(int color) If set, the text-color argument overrides the color specified by the root paint properties.static Expression.FormatOptionformatTextColor(Expression expression) If set, the text-color argument overrides the color specified by the root paint properties.static Expression.FormatOptionformatTextFont(Expression expression) If set, the text-font argument overrides the font specified by the root layout properties.static Expression.FormatOptionformatTextFont(String[] fontStack) If set, the text-font argument overrides the font specified by the root layout properties.
-
Method Details
-
formatFontScale
If set, the font-scale argument specifies a scaling factor relative to the text-size specified in the root layout properties."font-scale" is required to be of a resulting type number.
- Parameters:
expression- expression- Returns:
- format option
-
formatFontScale
If set, the font-scale argument specifies a scaling factor relative to the text-size specified in the root layout properties."font-scale" is required to be of a resulting type number.
- Parameters:
scale- value- Returns:
- format option
-
formatTextFont
If set, the text-font argument overrides the font specified by the root layout properties."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.
- Parameters:
expression- expression- Returns:
- format option
-
formatTextFont
If set, the text-font argument overrides the font specified by the root layout properties."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.
- Parameters:
fontStack- value- Returns:
- format option
-
formatTextColor
If set, the text-color argument overrides the color specified by the root paint properties.- Parameters:
expression- expression- Returns:
- format option
-
formatTextColor
If set, the text-color argument overrides the color specified by the root paint properties.- Parameters:
color- value- Returns:
- format option
-