SampledProperty does not work here because it tries to smoothly interpolate between the points you gave it and does not know how to interpolate the hierarchy of polygons.
So you can use TimeIntervalCollectionProperty . The difference here is that this property is animated in steps, not interpolation, so the property does not need to know how to create intermediate values โโbetween control points.
I did a small demonstration to show how this works with a polygonal hierarchy. Click Run Code Snippet at the bottom or copy and paste only JavaScript into Sandcastle .
var viewer = new Cesium.Viewer('cesiumContainer', { navigationInstructionsInitiallyVisible: false });
html, body, #cesiumContainer { width: 100%; height: 100%; margin: 0; padding: 0; overflow: hidden; font-family: sans-serif; }
<link href="http://cesiumjs.org/releases/1.19/Build/Cesium/Widgets/widgets.css" rel="stylesheet"/> <script src="http://cesiumjs.org/releases/1.19/Build/Cesium/Cesium.js"> </script> <div id="cesiumContainer"></div>
source share