Entity's show property is not working as expected.

Hey,

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.

Check this fiddle http://jsfiddle.net/4stotb8a/.

Is there anyway to resolve it without using extrudedHeight?

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).

Thanks for the reply.

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.

Is this intentional or a bug?

hideAndShowOfGrandChildren.html (4.67 KB)

Thanks, I’ll try and look at this ASAP and get both issues fixed before 1.10.

All Entity.show issues raised in this thread have been fixed and will be in 1.10 on Monday. See the below pull requests for details:

https://github.com/AnalyticalGraphicsInc/cesium/pull/2754

https://github.com/AnalyticalGraphicsInc/cesium/pull/2756

Thanks again to everyone for the heads up.

Thanks a lot!