forked from MapComplete/MapComplete
Use addCallbackAndRunD
This commit is contained in:
parent
8d9a992507
commit
ba04beab2c
4 changed files with 5 additions and 12 deletions
|
@ -9,8 +9,8 @@ export default class RegisteringFeatureSource implements FeatureSource {
|
|||
constructor(source: FeatureSource) {
|
||||
this.features = source.features;
|
||||
this.name = "RegisteringSource of " + source.name;
|
||||
this.features.addCallbackAndRun(features => {
|
||||
for (const feature of features ?? []) {
|
||||
this.features.addCallbackAndRunD(features => {
|
||||
for (const feature of features) {
|
||||
State.state.allElements.addOrGetElement(feature.feature)
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue