From ef60cfad26c60a9d24b39934e265644495506061 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Thu, 28 Apr 2022 11:47:54 +0200 Subject: [PATCH] Do not warn for features that have been added --- Logic/FeatureSource/PerLayerFeatureSourceSplitter.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Logic/FeatureSource/PerLayerFeatureSourceSplitter.ts b/Logic/FeatureSource/PerLayerFeatureSourceSplitter.ts index 8bf207aaa..cfa15af1f 100644 --- a/Logic/FeatureSource/PerLayerFeatureSourceSplitter.ts +++ b/Logic/FeatureSource/PerLayerFeatureSourceSplitter.ts @@ -41,17 +41,21 @@ export default class PerLayerFeatureSourceSplitter { } for (const f of features) { + let foundALayer = false; for (const layer of layers.data) { if (layer.layerDef.source.osmTags.matchesProperties(f.feature.properties)) { // We have found our matching layer! featuresPerLayer.get(layer.layerDef.id).push(f) + foundALayer = true; if (!layer.layerDef.passAllFeatures) { // If not 'passAllFeatures', we are done for this feature - break; + break } } } - noLayerFound.push(f) + if(!foundALayer){ + noLayerFound.push(f) + } } // At this point, we have our features per layer as a list