Polyline disappeared when terrainExaggeration is not 1.

1. A concise explanation of the problem you’re experiencing.

Hi, I want to drape polyline on exaggerated terrain surface.

But when I zoom in near polyline, polyline entity is disappeared

When terrainExaggeration is 1, it is not disappeared.

terrainExaggeration=1 capture:


terrainExaggeration=2 capture:


Any help would be appreciated.

Thank you.

2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.

This is full sandcastle code.

var viewer = new Cesium.Viewer(‘cesiumContainer’, {

terrainProvider: Cesium.createWorldTerrain(),

terrainExaggeration: 2,


var cartographics = [-93.9984, 41.4841,-93.7984, 41.6841];


polyline : {

positions : Cesium.Cartesian3.fromDegreesArray(cartographics),

width : 4.0,

material : Cesium.Color.RED,

clampToGround : true




3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

I want to drape polyline on exaggerated terrain surface.

4. The Cesium version you’re using, your operating system and browser.

Version 78.0.3904.108 (Official Build) (64-bit), Windows 10. Google Chrome