1. A concise explanation of the problem you’re experiencing.
Is is possible to create this:
function colorByHeight() {
tileset.style = new Cesium.Cesium3DTileStyle({
color: {
conditions: [
['${citygml_measured_height} >= 21', 'rgba(45, 0, 75, 0.5)'],
['${citygml_measured_height} >= 18', 'rgb(102, 71, 151)'],
['${citygml_measured_height} >= 15', 'rgb(170, 162, 204)'],
['${citygml_measured_height} >= 12', 'rgb(224, 226, 238)'],
['${citygml_measured_height} >= 9', 'rgb(252, 230, 200)'],
['${citygml_measured_height} >= 6', 'rgb(248, 176, 87)'],
['${citygml_measured_height} >= 3', 'rgb(198, 106, 11)'],
['true', 'rgb(127, 59, 8)']
]
}
});
}
``
But instead of in a declarative way define it by code.
For example, having a XML file with the ranges information-
2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
Define styles in a more generic way
4. The Cesium version you’re using, your operating system and browser.
1.50