image

Gets or sets the StyleExpression object used to evaluate the style's image property. Alternatively a string or object defining a string 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 String.

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

const style = new Cesium3DTileStyle({
image : '(${Temperature} 90) ? "/url/to/image1" : "/url/to/image2"'
});
style.image.evaluate(feature); // returns a String
const style = new Cesium3DTileStyle();
// Override image expression with a custom function
style.image = {
evaluate : function(feature) {
return '/url/to/image';
}
};

See also