From f7f0ccdb7d44309a75e513be62dafad6e714a6f2 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Sun, 12 Feb 2023 23:21:17 +0100 Subject: [PATCH] Fix #1318 --- UI/BigComponents/DownloadPanel.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/UI/BigComponents/DownloadPanel.ts b/UI/BigComponents/DownloadPanel.ts index bf69624b2..a2685016a 100644 --- a/UI/BigComponents/DownloadPanel.ts +++ b/UI/BigComponents/DownloadPanel.ts @@ -227,7 +227,7 @@ export class DownloadPanel extends Toggle { bbox, new Set(neededLayers) ) - outer: for (const tile of featureList) { + for (const tile of featureList) { if (Constants.priviliged_layers.indexOf(tile.layer) >= 0) { continue } @@ -238,7 +238,7 @@ export class DownloadPanel extends Toggle { } const featureList = perLayer.get(tile.layer) const filters = layer.appliedFilters.data - for (const feature of tile.features) { + perfeature: for (const feature of tile.features) { if (!bbox.overlapsWith(BBox.get(feature))) { continue } @@ -250,7 +250,7 @@ export class DownloadPanel extends Toggle { continue } if (!filter.currentFilter.matchesProperties(feature.properties)) { - continue outer + continue perfeature } } } @@ -281,7 +281,7 @@ export class DownloadPanel extends Toggle { delete feature.properties[key] } - featureList.push(feature) + featureList.push(cleaned) } }