Cesium3DTileStyle
A style that is applied to a Cesium3DTileset.
Evaluates an expression defined using the 3D Tiles Styling language.
tileset.style = new Cesium3DTileStyle({
color : {
conditions : [
['${Height} >= 100', 'color("purple", 0.5)'],
['${Height} >= 50', 'color("red")'],
['true', 'color("blue")']
]
},
show : '${Height} 0',
meta : {
description : '"Building id ${id} has height ${Height}."'
}
});
tileset.style = new Cesium3DTileStyle({
color : 'vec4(${Temperature})',
pointSize : '${Temperature} * 2.0'
});
See also
Properties
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.
Gets or sets the StyleExpression object used to evaluate the style's anchorLineEnabled
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.
Gets or sets the StyleExpression object used to evaluate the style's backgroundColor
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.
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.
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.
Gets or sets the StyleExpression object used to evaluate the style's color
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.
Gets or sets the StyleExpression object used to evaluate the style's disableDepthTestDistance
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.
Gets or sets the StyleExpression object used to evaluate the style's distanceDisplayCondition
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.
Gets or sets the StyleExpression object used to evaluate the style's font
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.
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.
Gets or sets the StyleExpression object used to evaluate the style's horizontalOrigin
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.
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.
Gets or sets the StyleExpression object used to evaluate the style's labelColor
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.
Gets or sets the StyleExpression object used to evaluate the style's labelHorizontalOrigin
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.
Gets or sets the StyleExpression object used to evaluate the style's labelOutlineColor
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.
Gets or sets the StyleExpression object used to evaluate the style's labelOutlineWidth
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.
Gets or sets the StyleExpression object used to evaluate the style's label style
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.
Gets or sets the StyleExpression object used to evaluate the style's labelText
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.
Gets or sets the StyleExpression object used to evaluate the style's labelVerticalOrigin
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.
Gets or sets the object containing application-specific expression that can be explicitly evaluated, e.g., for display in a UI.
Gets or sets the StyleExpression object used to evaluate the style's pointOutlineColor
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.
Gets or sets the StyleExpression object used to evaluate the style's pointOutlineWidth
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.
Gets or sets the StyleExpression object used to evaluate the style's pointSize
property. Alternatively a string or object defining a point size style can be used. The getter will return the internal Expression or ConditionsExpression, which may differ from the value provided to the setter.
Gets or sets the StyleExpression object used to evaluate the style's scaleByDistance
property. Alternatively a string or object defining a vec4 style can be used. The getter will return the internal Expression or ConditionsExpression, which may differ from the value provided to the setter.
Gets or sets the StyleExpression object used to evaluate the style's show
property. Alternatively a boolean, string, or object defining a show style can be used. The getter will return the internal Expression or ConditionsExpression, which may differ from the value provided to the setter.
Gets or sets the StyleExpression object used to evaluate the style's translucencyByDistance
property. Alternatively a string or object defining a vec4 style can be used. The getter will return the internal Expression or ConditionsExpression, which may differ from the value provided to the setter.
Gets or sets the StyleExpression object used to evaluate the style's verticalOrigin
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.