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