Between entity we can use zIndex solve the problem.
And between primitives we can use lowerToBottom.
But how entiy above primitives?
Any help thank u
Between entity we can use zIndex solve the problem.
And between primitives we can use lowerToBottom.
But how entiy above primitives?
Any help thank u
I don’t think there’s currently a way to control this directly. When you create an entity in CesiumJS, it does create a primitive internally for it. A lot of times there isn’t a 1:1 mapping (many entities can be batched as one primitive). It may be possible instead to add your entities to an EntityCollection (which is a primitive), and then move that position up/down the display list.
Thank u.
Your mean is add the EntityCollection to PrimitiveCollection and then use PrimitiveCollection’s raise/lower method to control the display ?
I use the DataSourceCollection’s raise/lower method, but doesn’t work. Base the below url
URL
Yes, that’s what you need to do. If you’re still having trouble with this, you can share a Sandcastle reproducing the issue and we can take a look, see: How to share custom Sandcastle examples
Thank you for your time