let syncViewer = function() {
return extent;
};
polygon: {
hierarchy: new Cesium.CallbackProperty(function() {
return new Cesium.PolygonHierarchy(syncViewer());
}, false),
material: new Cesium.ColorMaterialProperty(new Cesium.Color.RED.withAlpha(0)),
// height: 10000,
outline: true,
outlineColor: Cesium.Color.RED,
outlineWidth: 2,
HeightReference: Cesium.HeightReference.NONE
}
动态绘制多边形,报错, Cannot read properties of undefined(reading "_positions")