diff --git a/scripts/generatePmTilesExtracts.ts b/scripts/generatePmTilesExtracts.ts index 44fe11bf97..3f9d2a8df7 100644 --- a/scripts/generatePmTilesExtracts.ts +++ b/scripts/generatePmTilesExtracts.ts @@ -57,10 +57,15 @@ class GeneratePmTilesExtracts extends Script { const boundary = 2 << (z - 1) for (let x = 0; x < boundary / 2; x++) { // We first generate starting from the meridian, as this will prioritize Europe, where the dev is based - this.generateColumnIfNeeded(z, x, boundary, maxzoom) + for (const promise of this.generateColumnIfNeeded(z, x, boundary, maxzoom)) { + yield promise + } + } for (let x = 0; x < boundary; x++) { - this.generateColumnIfNeeded(z, x, boundary, maxzoom) + for (const promise of this.generateColumnIfNeeded(z, x, boundary, maxzoom)) { + yield promise + } } }