将 VectorProvider 与缓冲区集合渲染类分离开来
作者: danielzhong创建于 2026年8月25日更新于 2026年9月16日
标签category - vector data
Core从Scene中导入三个模块:
BufferPolygonCollectionBufferPolylineCollectionHeightReference
导入的集合是运行时值,而不是类型:collectionPackers 是以构造函数为键的 Map,VectorProvider.isSupported 和烘焙路径都在其中查找 collection.constructor。因此,这不能简化为只引用类型。需要反转注册表,每个集合都要注册其包装器,或者包装器需要移出 Core。
内容来源: CesiumGS/cesium