refactor(cesium): 重构 Cesium Viewer 状态管理和 Composable
This commit is contained in:
@@ -71,6 +71,7 @@ export class HCesiumManager {
|
||||
* @returns 返回添加的实体,如果 Viewer 未初始化则返回 null。
|
||||
*/
|
||||
addEntity(entity: Cesium.Entity): Cesium.Entity | null {
|
||||
console.debug(`[HCesiumManager] 添加实体: ${entity.name}`);
|
||||
if (!this.viewer) {
|
||||
console.error('Viewer 未初始化,无法添加实体。');
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user