Skip to content

Commit

Permalink
Fix #975
Browse files Browse the repository at this point in the history
  • Loading branch information
gkjohnson committed Feb 19, 2025
1 parent 62bceef commit f987527
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
5 changes: 4 additions & 1 deletion src/base/TilesRendererBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,10 @@ export class TilesRendererBase {

this.rootLoadingState = LOADED;
this.rootTileSet = root;
this.dispatchEvent( {
type: 'load-tile-set',
tileSet: root,
} );

} )
.catch( error => {
Expand All @@ -276,7 +280,6 @@ export class TilesRendererBase {
type: 'load-error',
tile: null,
error,
// uri: processedUrl,
} );

} );
Expand Down
16 changes: 0 additions & 16 deletions src/three/TilesRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,22 +310,6 @@ export class TilesRenderer extends TilesRendererBase {
}

/* Overriden */
preprocessTileSet( json, url, tile ) {

super.preprocessTileSet( json, url, tile );

queueMicrotask( () => {

this.dispatchEvent( {
type: 'load-tile-set',
tileSet: json,
url,
} );

} );

}

loadRootTileSet( ...args ) {

return super.loadRootTileSet( ...args )
Expand Down

0 comments on commit f987527

Please sign in to comment.