It is unclear how to use a composite entity collection. Our purpose is to be able to quickly add/remove groups of entities (we have over 10,000 across the entire globe)
here is a code sample:
createCustomDataSource: function() {
var scope = this;
scope.viewer = this.getCmp()._cesium;
//create datasource
scope._CoTDataSource = new Cesium.CustomDataSource();
//add data source
scope.viewer.dataSources.add(scope._CoTDataSource);
//create composite entity collection
scope.collections = new Cesium.CompositeEntityCollection();
scope._CoTDataSource.entityCollections = scope.collections;
scope.defaultCollection = new Cesium.EntityCollection();
scope.collections.addCollection(scope.defaultCollection);
scope.viewer.clock.onTick.addEventListener(function() {
scope.processData();
});
},