首页 / 浏览问题 / 三维GIS / 问题详情
给某一个模型设置颜色
12EXP 2022年08月02日
给某一个模型设置颜色,除了setObjsColor(ids, color)方法还有别的吗

1个回答

您好,

建议参考官网webgl示例“矢量”,使用style3D接口进行颜色设置,API参考链接 http://support.supermap.com.cn:8090/webgl/web/apis/3dwebgl.html ,例如

layer.style3D.fillStyle = layer.setObjsColor([581074,599131], new Cesium.Color(1, 0, 0));

希望能够帮助到您!

2,199EXP 2022年08月02日
...