Sorry for the very newbie question, but for the life of me cant figure out how to draw a Donut. I assume I draw a polygon containing a large circle and a smaller one as a hole, but cant get any further
Here is as far as I got:
var donut = viewer.entities.add({
name : 'A donut',
polygon : {
hierarchy : {
positions : new Cesium.CircleOutlineGeometry({
center : Cesium.Cartesian3.fromDegrees(0, 0),
radius : 100000.0
}),
holes : [ new Cesium.CircleOutlineGeometry({
center : Cesium.Cartesian3.fromDegrees(0, 0),
radius : 10000.0
})]
},
material : Cesium.Color.BLUE.withAlpha(0.5),
}
});
viewer.zoomTo(viewer.entities);
Could someone please point me in the right direction?