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:
Sameh Khamis committed 2026-11-11 20:51:40 -08:00
1 parent 74e4ebcf65
commit dbe026b109
5 files changed
+58 -7

No files matched your search

+3 -2
View File
@@ -299,8 +299,9 @@ export function createCesiumGlobe(
return {
photoreal: photorealStatus,
imagery: layers,
// A base a later call replaced has not settled; one whose later call
// failed is still drawn.
// 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).
settled: gen === drawnGen && !disposed && isSettled('base'),
};
}