mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-19 09:42:21 +00:00
A stack kept after a failed photoreal switch still falls back on tile failures
- When showing the photoreal base fails and the stack before it stays, its tile-failure listener is bound again for the switch that kept it, so Esri's OSM fallback still runs. - The Cockpit test of a ride handed to another aircraft checks that the follow's change adopted it (the Cockpit took the camera).
This commit is contained in:
1 parent
1fbe546531
commit
691cb0cd79
3 files changed
+43
-2
No files matched your search
+17
-1
@@ -302,7 +302,23 @@ export class MapSourceController {
|
||||
if (this._engine.tilesetReady) {
|
||||
this._showTileset(tileset);
|
||||
const ready = this._engine.tilesetReady(tileset);
|
||||
if (ready) await ready;
|
||||
if (ready)
|
||||
try {
|
||||
await ready;
|
||||
} catch (error) {
|
||||
// The stack before it stays: its tile failures still fall back,
|
||||
// heard for this switch.
|
||||
if (
|
||||
gen === this._switchGen &&
|
||||
this._imageryLayer &&
|
||||
this._activeResolution
|
||||
) {
|
||||
this._removeImageryErrorListener?.();
|
||||
this._removeImageryErrorListener = null;
|
||||
this._watchProvider(this._activeResolution, gen);
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
if (gen !== this._switchGen) return;
|
||||
}
|
||||
this._removeImageryLayer();
|
||||
|
||||
Reference in new issue
Block a user