KML Labels TranslucencyByDistance

Looking at the Cesium KML Sandcastle example (https://sandcastle.cesium.com/gallery/KML.html) the placemark labels appear and disappear when zooming. If I wanted to change the default behavior, is the correct approach to add the datasource/document, then iterate through the EntityCollection and change the translucencyByDistance on the label?

Thanks in advance

J. Stoy

Hello,

Yes, the best way to change the default behavior would be to iterate through each Entity after they are created. You can see an example for how to do this with a GeoJsonDataSource here: Cesium Sandcastle See the Custom styling section. Styling entities from your KmlDataSource should work the same way.

Best regards,

Hannah