Distance Display Condition not working properly

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

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!

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



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.