Feature(offline): prioritize generating europe

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

View file

@ -55,7 +55,7 @@ class GeneratePmTilesExtracts extends Script {
private* generateField(z: number, maxzoom?: number): Generator<Promise<void>> {
const boundary = 2 << (z - 1)
for (let x = 0; x < boundary / 2; x++) {
for (let x = boundary / 2; x < boundary; x++) {
// We first generate starting from the meridian, as this will prioritize Europe, where the dev is based
for (const promise of this.generateColumnIfNeeded(z, x, boundary, maxzoom)) {
yield promise