Is distanceDisplayCondition is working with czml??

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

distanceDisplayCondition is not working czml

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

Here is sample url sandcastle.

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

czml for model not support many option like billboard & label.

eg. scaleByDistance / translucencyByDistance …

so i should onlyuse minimumPixelSize & maximumScale options.

But these options have limit.

So i wanna utilize with “distanceDisplayCondition” option.

but it look not working

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

1.63 . Chrome. WIn10 64bit

Thank you

A CZML is a JSON file. You can’t create an instance of a class and pass it in that way.

See the CZML guide for how to use distance display condition in CZML: https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/DistanceDisplayConditionValue

So it would just be an array with the two values.

Hi Omar.

code

“distanceDisplayCondition” : {
“distanceDisplayCondition” : [
50, 200
]
},

``

is working

Thank you