hongfaqiu / cesium-extends

CesiumJS 的扩展库,提供事件订阅、大数据geojson加载、geojson样式、tooltip、popup、缩放控制、绘图工具、测量工具、双屏联动、指南针、热力图等功能
https://extends.opendde.com/
MIT License
185 stars 45 forks source link

地形和模型同时开启时,只能在模型上绘制 #11

Open LuckDogHu opened 8 months ago

LuckDogHu commented 8 months ago
cesium_drawer = initCesiumDrawer(cesium_viewer, {
    tips: {
      init: "点击绘制",
      start: "左键添加点,右键移除点,双击结束绘制",
    },
    terrain: true,
    // model: true,
  });

1.当只开启地形时,在地形还有3dtiles上均可以画线和面,但是画点时高度居然是0

https://github.com/hongfaqiu/cesium-extends/assets/45897157/06aa89b3-a249-4a45-88d7-f78982420fc1

2.当同时开启地形和模型时,只可以在3dtiles上绘制点线面,但是在3dtiles外无法绘制,点会漂移,画线和画面时,均不会渲染,但是回调函数里有点位值

https://github.com/hongfaqiu/cesium-extends/assets/45897157/d668f034-9965-431e-98b6-1f7aa3a9d238

如能将1中的点的高度问题解决,不胜感激