# Distance Display Condition not working properly

**URL:** <https://community.cesium.com/t/distance-display-condition-not-working-properly/4866>\
**Category:** CesiumJS\
**Created:** [November 30, 2016, 9:42am UTC](https://community.cesium.com/t/distance-display-condition-not-working-properly/4866 "2016-11-30T09:42:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Camila](https://avatars.discourse-cdn.com/v4/letter/c/c2a13f/32.png) [@Camila](https://community.cesium.com/u/Camila)\
**Post date:** [November 30, 2016, 9:42am UTC](https://community.cesium.com/t/distance-display-condition-not-working-properly/4866/1 "2016-11-30T09:42:02Z")

</div>

Hello everyone,

I've put together a small demo in Sandcastle: [http://cesiumjs.org/Cesium/Apps/Sandcastle/?src=Hello%20World.html&label=Showcases&gist=a79e5738fbc22b115c6d4cb3c5b42e88](http://cesiumjs.org/Cesium/Apps/Sandcastle/?src=Hello%20World.html&label=Showcases&gist=a79e5738fbc22b115c6d4cb3c5b42e88)

Using Cesium.DistanceDisplayCondition(0, 1000) works properly, I think, though I haven't measured the exact distance. But at least the corridor is showing when zooming in.

When using Cesium.DistanceDisplayCondition(1000, 10000) though, the corridor is never shown.

Any thoughts?  
Thanks in advance!

---

<div class="post-metadata">

**Author:** ![hannah](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/hannah/32/4509_2.png) [@hannah](https://community.cesium.com/u/hannah)\
**Post date:** [November 30, 2016, 2:18pm UTC](https://community.cesium.com/t/distance-display-condition-not-working-properly/4866/2 "2016-11-30T14:18:03Z")

</div>

Thanks for the code example! This looks like a bug. I’ve filed an issue here for us to look into it: [https://github.com/AnalyticalGraphicsInc/cesium/issues/4696](https://github.com/AnalyticalGraphicsInc/cesium/issues/4696)

Best,

Hannah

---

<div class="post-metadata">

**Author:** ![Benjamin\_Mur](https://avatars.discourse-cdn.com/v4/letter/b/e9a140/32.png) [@Benjamin\_Mur](https://community.cesium.com/u/Benjamin_Mur)\
**Post date:** [February 22, 2017, 1:39pm UTC](https://community.cesium.com/t/distance-display-condition-not-working-properly/4866/3 "2017-02-22T13:39:25Z")

</div>

I have another issue with displaydistancecondition.

When used on a polyline, with a callbackproperty for the positions, the condition is messed up.

It works backward.

I’ll try to send a sandcastle.
