# how to draw polygon on the terrain

**URL:** <https://community.cesium.com/t/how-to-draw-polygon-on-the-terrain/7126>\
**Category:** CesiumJS\
**Created:** [July 6, 2018, 10:34am UTC](https://community.cesium.com/t/how-to-draw-polygon-on-the-terrain/7126 "2018-07-06T10:34:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Reaky](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@Reaky](https://community.cesium.com/u/Reaky)\
**Post date:** [July 6, 2018, 10:34am UTC](https://community.cesium.com/t/how-to-draw-polygon-on-the-terrain/7126/1 "2018-07-06T10:34:28Z")

</div>

polygon: {  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hierarchy: Cesium.Cartesian3.fromDegreesArray([...]),  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;material: Cesium.Color.RED.withAlpha(0.5),  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;classificationType: Cesium.ClassificationType.BOTH  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}

the polygons I draw are beneath the terrain.in the example code, it covers terrain but this time it cover tiles too. How can I draw a polygon between tiles and ground?

---

<div class="post-metadata">

**Author:** ![omar](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/omar/32/1999_2.png) [@omar](https://community.cesium.com/u/omar)\
**Post date:** [July 6, 2018, 8:11pm UTC](https://community.cesium.com/t/how-to-draw-polygon-on-the-terrain/7126/2 "2018-07-06T20:11:47Z")

</div>

Does the [drawing on terrain example](https://cesiumjs.org/Cesium/Build/Apps/Sandcastle/?src=Drawing%20on%20Terrain.html) not work for you? If not, can you provide a screenshot or a minimal code example on [Sandcastle](https://cesiumjs.org/Cesium/Build/Apps/Sandcastle/) showing the issue?

---

<div class="post-metadata">

**Author:** ![Gabby\_Getz](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/gabby_getz/32/7838_2.png) [@Gabby\_Getz](https://community.cesium.com/u/Gabby_Getz)\
**Post date:** [July 9, 2018, 7:26pm UTC](https://community.cesium.com/t/how-to-draw-polygon-on-the-terrain/7126/3 "2018-07-09T19:26:19Z")

</div>

If you don’t want the polygon to classify the tileset, you can also set the **classificationType** to **[ClassificationType.TERRAIN](https://cesiumjs.org/Cesium/Build/Documentation/ClassificationType.html#.TERRAIN)** instead of BOTH (which is both terrain and 3D Tiles).
