原始cesium中我可以用GroundPolylineGeometry实现贴地,官网最新的api中找不到这个类。http://support.supermap.com.cn:8090/webgl/docs/Documentation/CorridorGeometry.html
GroundPolylineGeometry实现贴地,官网最新的api中找不到这个类。
您好,
目前iClient3D for Cesium使用的cesium版本为1.67,GroundPrimitive类暂不支持传入PolylineGeometry,无法通过这种方式实现贴地形线的绘制。
1.建议使用entity方式添加贴地线,polyline属性中传入clampToGround: true即可。
2.也可以使用KmlDataSource方式,同样传入clampToGround: true实现贴地,参考:http://support.supermap.com.cn:8090/webgl/Cesium/examples/webgl/editor.html#KML_route
希望能够帮助到您。