diff --git a/scripts/generateLayouts.ts b/scripts/generateLayouts.ts index c7aa518ec..ff7514063 100644 --- a/scripts/generateLayouts.ts +++ b/scripts/generateLayouts.ts @@ -295,13 +295,16 @@ class GenerateLayouts extends Script { if (f.properties.type === "vector") { // We also need to whitelist eventual sources let url = f.properties.url + urls.push(...(f.properties["connect-src"] ?? [])) if (url.startsWith("pmtiles://")) { url = url.substring("pmtiles://".length) } + if (url.endsWith(".pmtiles")) { + continue + } const styleSpec = await Utils.downloadJsonCached(url, 1000 * 120, { Origin: "https://mapcomplete.org", }) - urls.push(...(f.properties["connect-src"] ?? [])) for (const key of Object.keys(styleSpec?.["sources"] ?? {})) { const url = styleSpec["sources"][key].url if (!url) {