backgroundPadding
Gets or sets the StyleExpression object used to evaluate the style's backgroundPadding
property. Alternatively a string or object defining a vec2 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 Cartesian2
.
This expression is only applicable to point features in a Vector tile.
const style = new Cesium3DTileStyle();
// Override backgroundPadding expression with a string
style.backgroundPadding = 'vec2(5.0, 7.0)';
style.backgroundPadding.evaluate(feature); // returns a Cartesian2
Content copied to clipboard