您好,查询出来的对象可以通过entity的方式添加。比如你查询到的是面对象 ,添加方法如下:
viewer.entities.add({
name : 'Orange polygon with per-position heights and outline',
polygon : {
hierarchy : Cesium.Cartesian3.fromDegreesArrayHeights([116.44331186704213,39.90409452234542, 0,
116.45331186704213,39.90409452234542, 0,
116.45331186704213,39.91409452234542, 0,
116.44331186704213,39.91409452234542, 0]),
// extrudedHeight: 0,
heightReference:Cesium.HeightReference.CLAMP_TO_GROUND,
//perPositionHeight : true,
material : Cesium.Color.ORANGE,
outline : true,
outlineColor : Cesium.Color.BLACK,
outlineWidth :10,
}
});
你也可以去参考帮助文档里面的entity方法,
http://supermap.com:8090/webgl/Build/Documentation/Entity.html?classFilter=entity