Do not warn for features that have been added
This commit is contained in:
parent
3951b8d5c8
commit
ef60cfad26
1 changed files with 6 additions and 2 deletions
|
@ -41,18 +41,22 @@ 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
|
||||
}
|
||||
}
|
||||
}
|
||||
if(!foundALayer){
|
||||
noLayerFound.push(f)
|
||||
}
|
||||
}
|
||||
|
||||
// At this point, we have our features per layer as a list
|
||||
// We assign them to the correct featureSources
|
||||
|
|
Loading…
Reference in a new issue