How to show/hide individual features from GeoJsonDataSource?

I’ve added 500 features using

var promise = Cesium.GeoJsonDataSource.load(testdata);

promise.then(function(ds) {

cesium.dataSources.add(s);

var ent = dataSource.entities.values;

for(var i = 0; i < entities.length ;i++) {

entities[i].ellipsoid = {…}

console.log(“added ellipse”);

}

})

My problem is, nothing shows up and the console.log statement does not print out. What is the issue? I don’t want the billboard.

Hello,

Have you seen this GeoJSON demo? http://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=GeoJSON%20and%20TopoJSON.html&label=DataSources

The last example “Custom Styling” shows you how to change properties of the entities after they are loaded by the GeoJsonDataSource.

Best,

Hannah