Set classification type on geojson entities,but failed.

var buildingsPromise = Cesium.GeoJsonDataSource.load('../../../data/11.json');
         buildingsPromise.then(function (dataSource) {
         viewer.dataSources.add(dataSource);
         var buildings = dataSource.entities;
    
         var buildingsEntities = dataSource.entities.values;
         for (var i = 0;i < buildingsEntities.length;i++) {
             var entity = buildingsEntities[i];
    
             if(Cesium.defined(entity.polygon)) {
                 entity.name = entity.properties.Id;
                 entity.polygon.material = Cesium.Color.fromRandom({
                     red : 0.2,
                     minimumGreen : 0.5,
                     maximumBlue : 0.5,
                     alpha : 0.6
                 });
                 entity.polygon.outline = false;
                 entity.polygon.classificationType = Cesium.ClassificationType.CESIUM_3D_TILE;
             };
         }
     });

Your code is working for me. Please explain what failed means. Don’t forget to include the version of CesiumJS, the browser version, and platform basics. Graphics problem solutions frequently benefit having the text (not image) from webglreport.com.

Scott

Thanks,I have solved the problem,because of the ‘clamptoground’ parameter.