forked from MapComplete/MapComplete
Fix hiding and showing of features
This commit is contained in:
parent
d4f107c81a
commit
bc1863dcb6
12 changed files with 160 additions and 137 deletions
|
@ -100,10 +100,12 @@ export class Changes implements FeatureSource{
|
|||
}
|
||||
changes.push({elementId: id, key: kv.key, value: kv.value})
|
||||
}
|
||||
State.state.allElements.addOrGetElement(geojson).ping();
|
||||
|
||||
|
||||
console.log("New feature added and pinged")
|
||||
this.features.data.push({feature:geojson, freshness: new Date()});
|
||||
this.features.ping();
|
||||
|
||||
State.state.allElements.addOrGetElement(geojson).ping();
|
||||
|
||||
this.uploadAll([osmNode], changes);
|
||||
return geojson;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue