From e1be8487991c62e974de4ff1c4178c02bf780f5b Mon Sep 17 00:00:00 2001 From: wzy-warehouse <18135009705@163.com> Date: Tue, 12 May 2026 17:20:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=80=E4=BA=9Beslint?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/cesium/CesiumViewerManager.ts | 1 - src/utils/cesium/EntityManager.ts | 17 +++++++++++++---- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/src/utils/cesium/CesiumViewerManager.ts b/src/utils/cesium/CesiumViewerManager.ts index 3b7ead4..8735e67 100644 --- a/src/utils/cesium/CesiumViewerManager.ts +++ b/src/utils/cesium/CesiumViewerManager.ts @@ -82,7 +82,6 @@ export class CesiumViewerManager { containerId: options.containerId, shouldAnimate: true, baseLayerPicker: false, - imageryProvider: false, timeline: false, animation: false, infoBox: false, diff --git a/src/utils/cesium/EntityManager.ts b/src/utils/cesium/EntityManager.ts index ad05ab5..2fe1afb 100644 --- a/src/utils/cesium/EntityManager.ts +++ b/src/utils/cesium/EntityManager.ts @@ -260,12 +260,21 @@ export class EntityManager { * @param attributes 属性对象 * @private */ - #applyAttributesToEntity(entity: Entity, attributes: Record, entityType?: string): void { + #applyAttributesToEntity( + entity: Entity, + attributes: Record, + entityType?: string + ): void { if (!attributes || Object.keys(attributes).length === 0) { return; } - let targetGraphics: any = null; + let targetGraphics: + | PointGraphics + | BillboardGraphics + | PolylineGraphics + | PolygonGraphics + | null = null; if (entityType === 'point' && entity.point) { targetGraphics = entity.point; @@ -280,13 +289,13 @@ export class EntityManager { if (targetGraphics) { Object.entries(attributes).forEach(([key, value]) => { if (value !== undefined && value !== null) { - (targetGraphics as any)[key] = value; + (targetGraphics as unknown as Record)[key] = value; } }); } else { Object.entries(attributes).forEach(([key, value]) => { if (value !== undefined && value !== null) { - (entity as any)[key] = value; + (entity as unknown as Record)[key] = value; } }); }