mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
Place the credits line where Cesium's is, and draw a logo in place of its text
- Every placement of Cesium's credit display (above the command dock, the Minimal HUD's corner, clean view and recording, the phone tab bar and an open sheet) has the same rule for the application's line; a test keeps each stylesheet's pairs together. - A credit's logo is drawn in place of its text, which names it (the image's alt), as Cesium shows logo credits; the contract's Credit says so. Links open with noopener and noreferrer; a list that empties while focus is in it hands focus back to the line. - A stack that stays after any failed switch (a tileset or imagery that fails to load, or a photoreal base that fails to come back) still falls back on its tile failures: the controller binds its listener again for that switch where it handles the failure.
This commit is contained in:
1 parent
241c8dde64
commit
6a6967d1ad
8 files changed
+137
-24
No files matched your search
+11
-20
@@ -244,11 +244,18 @@ export class MapSourceController {
|
||||
this._lastError = message;
|
||||
this._onError?.(message, stack);
|
||||
const recovery = this.getStack(this._registry.recoveryId);
|
||||
if (
|
||||
const recovers =
|
||||
recovery &&
|
||||
recovery.id !== stack.id &&
|
||||
this.isStackAvailable(recovery.id)
|
||||
) {
|
||||
this.isStackAvailable(recovery.id);
|
||||
// A stack that stays after the failed switch still falls back on its
|
||||
// tile failures, heard for this switch.
|
||||
if (!recovers && this._imageryLayer && this._activeResolution) {
|
||||
this._removeImageryErrorListener?.();
|
||||
this._removeImageryErrorListener = null;
|
||||
this._watchProvider(this._activeResolution, gen);
|
||||
}
|
||||
if (recovers) {
|
||||
// Whatever settles now is the controller's choice, not the caller's.
|
||||
this._switchOrigin = 'automatic';
|
||||
try {
|
||||
@@ -302,23 +309,7 @@ export class MapSourceController {
|
||||
if (this._engine.tilesetReady) {
|
||||
this._showTileset(tileset);
|
||||
const ready = this._engine.tilesetReady(tileset);
|
||||
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 (ready) await ready;
|
||||
if (gen !== this._switchGen) return;
|
||||
}
|
||||
this._removeImageryLayer();
|
||||
|
||||
Reference in new issue
Block a user