Change layer rendering order for KMLs

I have two KMLs loaded on Cesium but the second KML loaded doesn’t render above the first. I tried to play with the extrusion / altitudeMode/height within the KML spec to see if I couldn’t get a manual fix though no such luck.

Is there a way to control layer ordering on KmlDataSources like change the indexOf() for a KML?



Unfortunately Cesium doesn’t have much in the way of z-order at this time (except for imagery layers). It’s on the long term roadmap but there’s no ETA.

No problem.

Is there any hack that I could use to effect the rendering order?