backgroundEnabled
Gets or sets the StyleExpression object used to evaluate the style's backgroundEnabled
property. Alternatively a string or object defining a boolean 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 Boolean
.
This expression is only applicable to point features in a Vector tile.
const style = new Cesium3DTileStyle();
// Override backgroundEnabled expression with a string
style.backgroundEnabled = 'true';
Content copied to clipboard
const style = new Cesium3DTileStyle();
// Override backgroundEnabled expression with a condition
style.backgroundEnabled = {
conditions : [
['${height} 2', 'true'],
['true', 'false']
]
};
Content copied to clipboard