首页 / 浏览问题 / 三维GIS / 问题详情
我想让PolylineGeometry实现贴地应该怎么做呢?
249EXP 2025年11月05日

原始cesium中我可以用GroundPolylineGeometry实现贴地,官网最新的api中找不到这个类。http://support.supermap.com.cn:8090/webgl/docs/Documentation/CorridorGeometry.html

1个回答

您好,

目前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

希望能够帮助到您。

640EXP 2025年11月06日
entity 太卡了 矢量稍微大一点就感觉移动地图卡卡的 kml感觉和entity 是一个样,稍微大一点矢量数据就卡

您好,如果需要使用GroundPolylineGeometry方案,可以使用原生cesium+超图插件方式解决,插件地址:https://github.com/SuperMap/s3m-spec

...