KML Labels TranslucencyByDistance

Looking at the Cesium KML Sandcastle example ( 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


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,