mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
render: setBase's settled is stated for overlapping calls: whether, when the call resolves, its base is still the one drawn and has settled; an earlier call resolving while a later style loads, or after it fails, is settled, and one resolving after a later call changed the base is not
This commit is contained in:
1 parent
74e4ebcf65
commit
dbe026b109
5 files changed
+58
-7
No files matched your search
@@ -1598,7 +1598,9 @@ export function createStubRenderer(options = {}) {
|
||||
const layers = (base.imagery ?? []).map((spec) => addImagery(spec));
|
||||
if (base.photoreal !== undefined)
|
||||
await globe.setPhotoreal(base.photoreal);
|
||||
// A base a later call replaced has not settled.
|
||||
// Settled when its base is still the one drawn: a later call changes
|
||||
// the base only once its style loads, and one whose style fails never
|
||||
// does (see the contract's setBase).
|
||||
return {
|
||||
photoreal: photorealStatus,
|
||||
imagery: layers,
|
||||
|
||||
Reference in new issue
Block a user