# Enabling in Cesium terrain causes KML lines and polygons to shift around when moving

**URL:** <https://community.cesium.com/t/enabling-in-cesium-terrain-causes-kml-lines-and-polygons-to-shift-around-when-moving/3770>\
**Category:** CesiumJS\
**Created:** [February 28, 2016, 9:23pm UTC](https://community.cesium.com/t/enabling-in-cesium-terrain-causes-kml-lines-and-polygons-to-shift-around-when-moving/3770 "2016-02-28T21:23:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jason\_M](https://avatars.discourse-cdn.com/v4/letter/j/8e8cbc/32.png) [@Jason\_M](https://community.cesium.com/u/Jason_M)\
**Post date:** [February 28, 2016, 9:23pm UTC](https://community.cesium.com/t/enabling-in-cesium-terrain-causes-kml-lines-and-polygons-to-shift-around-when-moving/3770/1 "2016-02-28T21:23:35Z")

</div>

If view KML files with a terrainProvider then geometries appear to be shifting as you zoom in/out and pan around.

If no terrainProvider is enabled in Cesium (tested with v1.18) then all examples are displayed same as they appear in Google Earth.

The problem is clearly seen with these examples [http://kml-samples.googlecode.com/svn/trunk/morekml/Lines\_and\_Paths/](http://kml-samples.googlecode.com/svn/trunk/morekml/Lines_and_Paths/)

In particular these files illustrate the issue:

- Line\_Strings.Relative\_Extruded.kml
- Line\_Strings.Tessellated.kml
- Line\_Strings.Untessellated.kml
- Lines\_and\_Paths.Linear\_Ring.kml

Enable terrainProvider and drag/drop then drag/drop these kml files onto the map :

---

<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:** [February 29, 2016, 12:24am UTC](https://community.cesium.com/t/enabling-in-cesium-terrain-causes-kml-lines-and-polygons-to-shift-around-when-moving/3770/2 "2016-02-29T00:24:19Z")

</div>

Jason, KML data on terrain is not currently supported in Cesium. The effect you are seeing is the data being drawn under the terrain (by default data is not currently obscured by terrain). We hope to support this feature soon, but there are lots of issues that need to be worked out. This pull request will add initial support, so you can follow that for more information: [https://github.com/AnalyticalGraphicsInc/cesium/pull/3406](https://github.com/AnalyticalGraphicsInc/cesium/pull/3406)
