您好,您是想要在一个场景里面添加两个kml图层吗?
var datasource = viewer.dataSources.add(Cesium.KmlDataSource.load('./SampleData/kml/2015beijingsubway.kml', {
camera: scene.camera,
canvas: scene.canvas
})).then(function (kmlDatasource) {
kmlLayer = kmlDatasource;
var entity = kmlDatasource.entities.values[0];
viewer.zoomTo(entity);
});重复添加,定义不同的变量名,填入不同的kml地址即可