你好,产品是SuperMap iClient3D for WebGL
示范:
http://support.supermap.com.cn:8090/webgl/examples/editor.html#getFeatureBySQL
帮助文档:
http://support.supermap.com.cn:8090/webgl/Build/Documentation/Entity.html?classFilter=Ent
用polygon与实体关联的多边形对象。
你好,我现在已经查询到了我的空间数据,这个数据里面有空间点坐标数组
现在困惑的是如何通过这些点的数组来转换成这个实体并添加到viewer
viewer.entities.add({ name: 'wsd', polygon: { hierarchy: { positions:[ new Cesium.Cartesian3.fromDegrees(113.347166910345,22.456945507587,17.6540978485718), new Cesium.Cartesian3.fromDegrees(113.347188640329,22.4569452370077,17.6471805935726), new Cesium.Cartesian3.fromDegrees(113.347187513187,22.4569452531808, 18.8275937698781), new Cesium.Cartesian3.fromDegrees(113.347167773546,22.4569454989442, 18.8079968765378) ] }, material: new Cesium.ImageMaterialProperty({ image:'./images/wsd.png', repeat : new Cesium.Cartesian2(1, 1) }) } });