Fixing adding multiple points

This commit is contained in:
Pieter Vander Vennet 2021-01-04 22:59:11 +01:00
parent 32bc1433b4
commit baf41cb79d
6 changed files with 20 additions and 25 deletions

View file

@ -17,6 +17,9 @@ export default class FeatureSourceMerger implements FeatureSource {
private Update() {
let all = {}; // Mapping 'id' -> {feature, freshness}
for (const source of this._sources) {
if(source?.features?.data === undefined){
continue;
}
for (const f of source.features.data) {
const id = f.feature.properties.id+f.feature.geometry.type+f.feature._matching_layer_id;
const oldV = all[id];