labelStyle

Gets or sets the StyleExpression object used to evaluate the style's label style property. Alternatively a string or object defining a number style can be used. The getter will return the internal Expression or ConditionsExpression, which may differ from the value provided to the setter.

The expression must return a LabelStyle.

This expression is only applicable to point features in a Vector tile.

const style = new Cesium3DTileStyle({
labelStyle : `(\${Temperature} 90) ? ${LabelStyle.FILL_AND_OUTLINE} : ${LabelStyle.FILL}`
});
style.labelStyle.evaluate(feature); // returns a LabelStyle
const style = new Cesium3DTileStyle();
// Override labelStyle expression with a custom function
style.labelStyle = {
evaluate : function(feature) {
return LabelStyle.FILL;
}
};

See also