# Billboard Marker going to be hidden on Terrain Layer? Please Help me Out

**URL:** <https://community.cesium.com/t/billboard-marker-going-to-be-hidden-on-terrain-layer-please-help-me-out/11471>\
**Category:** CesiumJS\
**Created:** [November 6, 2020, 6:05am UTC](https://community.cesium.com/t/billboard-marker-going-to-be-hidden-on-terrain-layer-please-help-me-out/11471 "2020-11-06T06:05:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![94ankitshrivastava](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/94ankitshrivastava/32/3523_2.png) [@94ankitshrivastava](https://community.cesium.com/u/94ankitshrivastava)\
**Post date:** [November 6, 2020, 6:05am UTC](https://community.cesium.com/t/billboard-marker-going-to-be-hidden-on-terrain-layer-please-help-me-out/11471/1 "2020-11-06T06:05:36Z")

</div>

Hi Cesium Team, I am facing an issue, i am using pinBuilder() to create marker for Cluster and it is working fine on Ellipsoid Layer but whenever i used terrain layer its get faded and seems like going under the ground. So i checked your cesium sandcastle cluster example and i found that there is also same issue on terrain layer.  
I created a video of that issue please have a look. it will help you more to find the issue.

> **[Invalid File name](https://screenrec.com/share/wLHAicIfNV)**
>
> Recorded with ScreenRec

Your help will be appritiated thanks.

---

<div class="post-metadata">

**Author:** ![dzung](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/dzung/32/2996_2.png) [@dzung](https://community.cesium.com/u/dzung)\
**Post date:** [November 12, 2020, 10:05pm UTC](https://community.cesium.com/t/billboard-marker-going-to-be-hidden-on-terrain-layer-please-help-me-out/11471/2 "2020-11-12T22:05:41Z")

</div>

This is because when you change to the Cesium World Terrain layer, `viewer.scene.globe.depthTestAgainstTerrain` is set to true. This causes some billboards to get occluded by the terrain.

To fix this, you can add an event listener that listens to when the terrain layer is changed ([TerrainProviderChanged](https://cesium.com/docs/cesiumjs-ref-doc/Globe.html?classFilter=globe#terrainProviderChanged)) and set the `viewer.scene.globe.depthTestAgainstTerrain` to false if the layer is Cesium World Terrain.

---

<div class="post-metadata">

**Author:** ![Ankit\_Shrivastava](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/ankit_shrivastava/32/4240_2.png) [@Ankit\_Shrivastava](https://community.cesium.com/u/Ankit_Shrivastava)\
**Post date:** [March 3, 2021, 9:19am UTC](https://community.cesium.com/t/billboard-marker-going-to-be-hidden-on-terrain-layer-please-help-me-out/11471/3 "2021-03-03T09:19:52Z")

</div>

@dzung Thanks Mam… thanks for your support its working for me.
