From 1a3bcbdf9844a079bc56ca2cb2212c9d4b69e2cb Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Thu, 31 Jul 2025 13:48:31 +0200 Subject: [PATCH] Feature(offline): prioritize generating europe --- scripts/generatePmTilesExtracts.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 + } } }