I'm running into an issue while setting entities with a polygon show property.
I set this property value based on the camera height, and it all works fine, until I add a new entity (not related in any way/value to the original one).
Once the new entity is added, the old entity's polygon suddenly appears even with its show set to false. While testing this issue I saw that when setting the polygon with extrudedHeight doesn't lead to this problem, however it also happens with polyline, and polyline doesn't have extrudedHeight property.
Thanks for the report and sample code, this does indeed look like a bug. I submitted https://github.com/AnalyticalGraphicsInc/cesium/issues/2686 for it and I’ll send out another update once it’s fixed (which will hopefully be ASAP but definitely before 1.10).
Antoher issue, that I don’t know if related, but should be addressed I believe - the parent-child relationship is only valid for 1 level.
This means, that if I have a grandparent, it doesn’t affect the grandchildren.
I attach a sandcastle sample code.
When you click to hide the grandparents, it doesn’t hide anything.
When you click to hide the parents, it hides the children.