#13723·cesium

将 VectorProvider 与缓冲区集合渲染类分离开来

作者: danielzhong创建于 2026年8月25日更新于 2026年9月16日
标签category - vector data
  1. CoreScene 中导入三个模块:
  • BufferPolygonCollection
  • BufferPolylineCollection
  • HeightReference

导入的集合是运行时值,而不是类型:collectionPackers 是以构造函数为键的 MapVectorProvider.isSupported 和烘焙路径都在其中查找 collection.constructor。因此,这不能简化为只引用类型。需要反转注册表,每个集合都要注册其包装器,或者包装器需要移出 Core

内容来源: CesiumGS/cesium