Feature(offline): prioritize generating europe

This commit is contained in:
Pieter Vander Vennet 2025-07-31 13:48:31 +02:00
parent b6f21a795f
commit 1a3bcbdf98

View file

@ -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
}
}
}