forked from MapComplete/MapComplete
Feature(offline): prioritize generating europe
This commit is contained in:
parent
b6f21a795f
commit
1a3bcbdf98
1 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue