# Polylines not staying in fixed locations

**URL:** <https://community.cesium.com/t/polylines-not-staying-in-fixed-locations/5564>\
**Category:** CesiumJS\
**Created:** [May 26, 2017, 5:35pm UTC](https://community.cesium.com/t/polylines-not-staying-in-fixed-locations/5564 "2017-05-26T17:35:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peter\_Sawall](https://avatars.discourse-cdn.com/v4/letter/p/7ea924/32.png) [@Peter\_Sawall](https://community.cesium.com/u/Peter_Sawall)\
**Post date:** [May 26, 2017, 5:35pm UTC](https://community.cesium.com/t/polylines-not-staying-in-fixed-locations/5564/1 "2017-05-26T17:35:18Z")

</div>

The heights of my KML lines are based off of the ellipsoid, rather than the STK.  
How can this be fixed?

[http://bcc.kapurinc.com/test/FoxGenLateral\_South\_Cesium/App/](http://bcc.kapurinc.com/test/FoxGenLateral_South_Cesium/App/)

- Peter

---

<div class="post-metadata">

**Author:** ![Rachel\_Hwang](https://avatars.discourse-cdn.com/v4/letter/r/d78d45/32.png) [@Rachel\_Hwang](https://community.cesium.com/u/Rachel_Hwang)\
**Post date:** [May 26, 2017, 8:07pm UTC](https://community.cesium.com/t/polylines-not-staying-in-fixed-locations/5564/2 "2017-05-26T20:07:07Z")

</div>

Hi Peter,

Try the Cesium KML clamp to ground option: [https://cesiumjs.org/Cesium/Build/Documentation/KmlDataSource.html#.load](https://cesiumjs.org/Cesium/Build/Documentation/KmlDataSource.html#.load)

The limitation here is that your polylines will be replaced with corridors, which won’t stay of fixed size on screen as you move away from them. We don’t yet have support for ground-clamping polylines (has been on our long term road map for a while, but will require more research as its actually a pretty involved problem).

Hope that helps!

- Rachel
