Atomic, EOF-checked extract downloads; Apply starts builds one after another so routing waits for the offline map's downloads

This commit is contained in:
randy committed 2026-11-13 22:28:37 +01:00
1 parent bf912b96e5
commit d93c77727f
3 files changed
+58 -2

No files matched your search

+7 -1
View File
@@ -397,7 +397,13 @@ export class OfflineDataControl {
formatMeta: formatRoutingMeta,
}),
];
this._regionPicker = new RegionPicker(() => this._rows.forEach((row) => row.triggerBuild()));
// One after another (each returns once its build has started, not
// finished): the routing request must reach the server after the
// offline build has, so it waits for the extracts that build downloads
// (Routing.request_build) instead of building from half-written ones.
this._regionPicker = new RegionPicker(async () => {
for (const row of this._rows) await row.triggerBuild();
});
}
mount(sidebar) {