Placing Layer Over Entity

Hello, I was wondering if it possible to draw a layer on top of entities. I tried removing all the layers, drawing the entities and then adding a layer but it drew it below the entities.

Any help would be appreciated!

Hi there,

What do you mean by under the entities? Imagery layers are always drawn on the surface of the ellipsoid. Ground-clamped entities will always be drawn on top. You can draw geometry under or through the surface of the ellipsoid like this: http://cesiumjs.org/Cesium/Apps/Sandcastle/?src=Hello%20World.html&label=Showcases&gist=c17a732f3ac6ee97c91e1cf227191d5e

Hope that helps,

  • Rachel

So what I would like is to have something like this but have the layer drawn overtop the circles and be a little transparent so the roads can be seen over the colored circle. I can make the circles transparent but I have a lot of these points and when the circles overlap, the colors mix and the alpha values combine and the image becomes a little messy. If I’m able to keep them at alpha of 1 the colors combine how I like.

I tried drawing the ellipse at negative height and making the base layer have an alpha value of .5 but it wasn’t possible to see the ellipse. Thanks for the help and if you have any other ideas I would appreciate it!

Capture.PNG

Hi Brian,

I’m afraid I don’t know of any way to accomplish what you describe. Although Cesium supports alpha for imagery layers, there’s no way to draw entities between two imagery layers since they’re all drawn on the ellipsoid surface.

If you don’t like the way your entities blend when they’re too close together, consider looking at our clustering support: http://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=Clustering.html&label=Showcases

Hope that helps,

  • Rachel