Skip to content

Commit

Permalink
Imorove Tile3DLayer.isLoaded (#8279)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgervang committed Nov 15, 2023
1 parent e2b1fd8 commit 0a5da79
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/geo-layers/src/tile-3d-layer/tile-3d-layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ export default class Tile3DLayer<DataT = any, ExtraPropsT extends {} = {}> exten
}

get isLoaded(): boolean {
const {tileset3d} = this.state;
return tileset3d !== null && tileset3d.isLoaded();
return Boolean(this.state?.tileset3d?.isLoaded() && super.isLoaded);
}

shouldUpdateState({changeFlags}: UpdateParameters<this>): boolean {
Expand Down

0 comments on commit 0a5da79

Please sign in to comment.