Add method for retrying all failed tiles
@@ -28,5 +28,6 @@ export class TilesRendererBase {
afterCb : ( ( tile : Object, parent : Object, depth : Number ) => Boolean ) | null
) : void;
dispose() : void;
+ resetFailedTiles() : void;
}
@@ -289,6 +289,30 @@ export class TilesRendererBase {
+
+ resetFailedTiles() {
+ const stats = this.stats;
+ if ( stats.failed === 0 ) {
+ return;
+ }
+ this.traverse( tile => {
+ if ( tile.__loadingState === FAILED ) {
+ tile.__loadingState = UNLOADED;
+ } );
+ stats.failed = 0;
// Private Functions
fetchTileSet( url, fetchOptions, parent = null ) {