# Change layer rendering order for KMLs

**URL:** <https://community.cesium.com/t/change-layer-rendering-order-for-kmls/1740>\
**Category:** CesiumJS\
**Created:** [December 8, 2014, 4:29pm UTC](https://community.cesium.com/t/change-layer-rendering-order-for-kmls/1740 "2014-12-08T16:29:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zach\_Seaman](https://avatars.discourse-cdn.com/v4/letter/z/bb73d2/32.png) [@Zach\_Seaman](https://community.cesium.com/u/Zach_Seaman)\
**Post date:** [December 8, 2014, 4:29pm UTC](https://community.cesium.com/t/change-layer-rendering-order-for-kmls/1740/1 "2014-12-08T16:29:49Z")

</div>

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?

Thanks,

Zach

---

<div class="post-metadata">

**Author:** ![Matt\_Amato](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/matt_amato/32/1993_2.png) [@Matt\_Amato](https://community.cesium.com/u/Matt_Amato)\
**Post date:** [December 9, 2014, 2:51am UTC](https://community.cesium.com/t/change-layer-rendering-order-for-kmls/1740/2 "2014-12-09T02:51:14Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Zach\_Seaman](https://avatars.discourse-cdn.com/v4/letter/z/bb73d2/32.png) [@Zach\_Seaman](https://community.cesium.com/u/Zach_Seaman)\
**Post date:** [December 9, 2014, 4:46pm UTC](https://community.cesium.com/t/change-layer-rendering-order-for-kmls/1740/3 "2014-12-09T16:46:51Z")

</div>

No problem.

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