1. A concise explanation of the problem you’re experiencing.
I tried a workaround for the polygons clamped-to-ground not displaying outlines.
I tried loading the outlines as a separate set of polylines.
The polylines render before the polygons, and are rendered underneath the polygons, even though all the polygons have ZIndex = 0 and all the polylines have ZIndex = 1.
2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.
I’m not going to write a Sandcastle example to demo this, I think someone on the Cesium team already knows the answer to my question, but if you want to see an example of my attempt to load polylines outlines for polygon, take a look at https://lftgly.com/wordpress/?page_id=101
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
the polygons clamped-to-ground without outlines issue, “Entity geometry outlines are unsupported on terrain. Outlines will be disabled. To enable outlines, disable geometry terrain clamping by explicitly setting height to 0.”
4. The Cesium version you’re using, your operating system and browser.
December Cesium release 1.52, Chrome Version 71.0.3578.98 (Official Build) (64-bit) on a Windows7 desktop, but same mobile results, rendering in Chrome 71.0.3578.98 on Android 8.0.0, and Safari on iOS 12.
I vaguely recall Gabby or someone on the Cesium team recommending the workaround of loading polylines for polygon outlines months ago, but can’t find that thread in my Cesium-dev topic subscriptions or Google search results.
If, as I now suspect, ZIndex “ordering ground geometry” only applies to other entities with the same geometry, then I may need to try chaining the async processes to insure that the polylines load, in order, AFTER polygons load, to render ON TOP of the polygons.