使用产品:iclient 3d for webgl 10.2.1
数据类型:CircleGeometry 对象
问题详细描述:同样代码 在官方Cesium 沙盒中可用,使用supermap组件报错;比较着急,请看到后能够尽快回复
代码:
let geometry= new Cesium.CircleGeometry({
center: Cesium.Cartesian3.fromDegrees(117.97604853680981, 38.02916783447606),
radius: 250000.0,
vertexFormat: Cesium.PerInstanceColorAppearance.VERTEX_FORMAT
});
let instance = new Cesium.GeometryInstance({
geometry: geometry,
id: '11111',
attributes: {
color: Cesium.ColorGeometryInstanceAttribute.fromColor(
new Cesium.Color(1.0, 0.0, 0.0, 0.5)),
}
});
var primitive = new Cesium.GroundPrimitive({
geometryInstances: instance,
appearance: new Cesium.PerInstanceColorAppearance()
});
scene.primitives.add(primitive);
使用组件报如下错误
Cesium官方沙盒