首页 / 浏览问题 / 三维GIS / 问题详情
webGL椭球如何显示查询到的数据
44EXP 2017年07月31日
您好,请教一个问题:

通过iClient for javascript的地图或者数据集查询到的数据,如何在webGL椭球上显示,要显示的数空间数据

1个回答

您好,查询出来的对象可以通过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

887EXP 2017年08月01日
...