From c06debc39f9af23378133efd302cc263f8b8bf45 Mon Sep 17 00:00:00 2001 From: Chris Gervang Date: Wed, 15 Nov 2023 16:54:59 -0800 Subject: [PATCH] [v9] Improve Tile3DLayer#isLoaded (#8285) --- modules/geo-layers/src/tile-3d-layer/tile-3d-layer.ts.disabled | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/geo-layers/src/tile-3d-layer/tile-3d-layer.ts.disabled b/modules/geo-layers/src/tile-3d-layer/tile-3d-layer.ts.disabled index c4f10fa7a20..01947836dd6 100644 --- a/modules/geo-layers/src/tile-3d-layer/tile-3d-layer.ts.disabled +++ b/modules/geo-layers/src/tile-3d-layer/tile-3d-layer.ts.disabled @@ -105,8 +105,7 @@ export default class Tile3DLayer exten } get isLoaded(): boolean { - const {tileset3d} = this.state; - return tileset3d !== null && tileset3d.isLoaded(); + return Boolean(this.state?.tileset3d?.isLoaded() && super.isLoaded); } shouldUpdateState({changeFlags}: UpdateParameters): boolean {