heightOffset

Gets or sets the StyleExpression object used to evaluate the style's heightOffset 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 Number.

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

const style = new Cesium3DTileStyle();
// Override heightOffset expression with a string
style.heightOffset = '2.0';
const style = new Cesium3DTileStyle();
// Override heightOffset expression with a condition
style.heightOffset = {
conditions : [
['${height} 2', '4.0'],
['true', '2.0']
]
};

See also