# I want not to show Polyline under terrain surface

**URL:** <https://community.cesium.com/t/i-want-not-to-show-polyline-under-terrain-surface/1786>\
**Category:** CesiumJS\
**Created:** [December 20, 2014, 4:10am UTC](https://community.cesium.com/t/i-want-not-to-show-polyline-under-terrain-surface/1786 "2014-12-20T04:10:18Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ko-hei\_OHTSUKA](https://avatars.discourse-cdn.com/v4/letter/k/ecb155/32.png) [@Ko-hei\_OHTSUKA](https://community.cesium.com/u/Ko-hei_OHTSUKA)\
**Post date:** [December 20, 2014, 4:10am UTC](https://community.cesium.com/t/i-want-not-to-show-polyline-under-terrain-surface/1786/1 "2014-12-20T04:10:18Z")

</div>

Hello,

I'm now making drone flight planner by using Cesium.

I'm using TerrainProvider and SimplePolylineGeometry, both work well in each,  
but Polyline under terrain height is not hided by terrain.

How can I make polyline under terrain height to be hided?

Thanks,  
Ko-hei

---

<div class="post-metadata">

**Author:** ![patrick](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/patrick/32/2045_2.png) [@patrick](https://community.cesium.com/u/patrick)\
**Post date:** [December 20, 2014, 5:56pm UTC](https://community.cesium.com/t/i-want-not-to-show-polyline-under-terrain-surface/1786/2 "2014-12-20T17:56:23Z")

</div>

Hi,

Try setting this:

> viewer.scene.globe.depthTestAgainstTerrain = true;

Eventually, this will be automatic. See [#2160](https://github.com/AnalyticalGraphicsInc/cesium/issues/2160).

Sounds like a cool app, please share a link or screenshots as you make progress.

Patrick

---

<div class="post-metadata">

**Author:** ![Ko-hei\_OHTSUKA](https://avatars.discourse-cdn.com/v4/letter/k/ecb155/32.png) [@Ko-hei\_OHTSUKA](https://community.cesium.com/u/Ko-hei_OHTSUKA)\
**Post date:** [December 22, 2014, 12:39am UTC](https://community.cesium.com/t/i-want-not-to-show-polyline-under-terrain-surface/1786/3 "2014-12-22T00:39:25Z")

</div>

Hello,

Thank you, that it!  
Polyline goes under the terrain.

My application is for closed order, so I can't show full source of it.  
But I made component for loading DEM tiles which are provided by Japanese  
Geospatial Information Authority as TerrainProvider.

So, I will open this component as open source later.

BTW, Thank you for your cooperation!

Ko-hei

2014年12月21日日曜日 2時56分23秒 UTC+9 Patrick Cozzi:

---

<div class="post-metadata">

**Author:** ![patrick](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/patrick/32/2045_2.png) [@patrick](https://community.cesium.com/u/patrick)\
**Post date:** [December 22, 2014, 1:09pm UTC](https://community.cesium.com/t/i-want-not-to-show-polyline-under-terrain-surface/1786/4 "2014-12-22T13:09:43Z")

</div>

Hi Ko-hei,

Thanks for the info. If any parts of the app are publicly available (even if closed source), we would be happy to showcase it on the Cesium website like we’ve done for similar apps for Australia and France:

> [https://cesiumjs.org/demos/nationalmap.html](https://cesiumjs.org/demos/nationalmap.html)

> 

> [https://cesiumjs.org/demos/ign.html](https://cesiumjs.org/demos/ign.html)

Let me know.

Patrick

---

<div class="post-metadata">

**Author:** ![Ko-hei\_OHTSUKA](https://avatars.discourse-cdn.com/v4/letter/k/ecb155/32.png) [@Ko-hei\_OHTSUKA](https://community.cesium.com/u/Ko-hei_OHTSUKA)\
**Post date:** [February 13, 2015, 2:14am UTC](https://community.cesium.com/t/i-want-not-to-show-polyline-under-terrain-surface/1786/5 "2015-02-13T02:14:00Z")

</div>

Hello, Patrick,

Thank you for helping me about this topic.  
With your help, I have already publish Tile/TerrainProvider from Japanese Geospatial Information Authority’s API,  
in Github.

[https://github.com/tilemapjp/Cesium-JapanGSI](https://github.com/tilemapjp/Cesium-JapanGSI)

Example is here.

[http://t.tilemap.jp.s3.amazonaws.com/cesium/index.html](http://t.tilemap.jp.s3.amazonaws.com/cesium/index.html)

If this is comes up to quality, please use showcase of Cesium.  
It is my pleasure.

Thank you,  
Ko-hei

2014年12月22日月曜日 22時09分44秒 UTC+9 Patrick Cozzi:

---

<div class="post-metadata">

**Author:** ![patrick](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/patrick/32/2045_2.png) [@patrick](https://community.cesium.com/u/patrick)\
**Post date:** [February 13, 2015, 3:36pm UTC](https://community.cesium.com/t/i-want-not-to-show-polyline-under-terrain-surface/1786/6 "2015-02-13T15:36:35Z")

</div>

Thanks for the link. Nice progress. Are you going to do more development? Or is the focus on just showing terrain and imagery?

Patrick

---

<div class="post-metadata">

**Author:** ![Ko-hei\_OHTSUKA](https://avatars.discourse-cdn.com/v4/letter/k/ecb155/32.png) [@Ko-hei\_OHTSUKA](https://community.cesium.com/u/Ko-hei_OHTSUKA)\
**Post date:** [February 15, 2015, 1:08pm UTC](https://community.cesium.com/t/i-want-not-to-show-polyline-under-terrain-surface/1786/7 "2015-02-15T13:08:59Z")

</div>

My last development products, which use library in github, are closed.  
So I can’t show them as public.

And  
[http://t.tilemap.jp.s3.amazonaws.com/cesium/index.html](http://t.tilemap.jp.s3.amazonaws.com/cesium/index.html)  
is just example of library, so talking about this URL, that’s all.

Ko-hei

---

<div class="post-metadata">

**Author:** ![sarah](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/sarah/32/1947_2.png) [@sarah](https://community.cesium.com/u/sarah)\
**Post date:** [November 7, 2015, 2:57pm UTC](https://community.cesium.com/t/i-want-not-to-show-polyline-under-terrain-surface/1786/8 "2015-11-07T14:57:37Z")

</div>

Ko-hei,

Do you have more development you can share publicly? The demo at [http://t.tilemap.jp.s3.amazonaws.com/cesium/index.html](http://t.tilemap.jp.s3.amazonaws.com/cesium/index.html) is great and if there were more details available to viewers we’d love to showcase it on the Cesium website: [http://cesiumjs.org/demos.html](http://cesiumjs.org/demos.html)

Sarah Chow

Cesium editor
