您好,我这边测试当前官网最新版是正常的,如图:
我的测试代码也提供给您,您可以看一下:
function onload(Cesium) {
viewer = new Cesium.Viewer('cesiumContainer');
var scene = viewer.scene;
var entity = viewer.entities.add({
id: 'polygonA',
polygon: {
hierarchy: Cesium.Cartesian3.fromDegreesArrayHeights([
115.00769546779887, 39.00948953601627,50,
115.01061031637882, 39.01040583624218,50,
115.01127283211821, 39.00875368295838,50,
115.00837238000206, 39.0079302039017
,50,]),
perPositionHeight: true,
extrudedHeight:30,
material: new Cesium.Color(1, 1, 0.20, 0.5),
outline: true,
outlineColor: Cesium.Color.RED,
outlineWidth:5,
}
});
viewer.flyTo(entity);
}
希望可以帮到您。