forked from MapComplete/MapComplete
Add feature which loads the selected element from overpass to update the tags to the latest version
This commit is contained in:
parent
d7277838e4
commit
c6b4ba43fb
4 changed files with 91 additions and 25 deletions
2
State.ts
2
State.ts
|
@ -18,6 +18,7 @@ import LayerConfig from "./Customizations/JSON/LayerConfig";
|
|||
import TitleHandler from "./Logic/Actors/TitleHandler";
|
||||
import PendingChangesUploader from "./Logic/Actors/PendingChangesUploader";
|
||||
import {Relation} from "./Logic/Osm/ExtractRelations";
|
||||
import UpdateTagsFromOsmAPI from "./Logic/Actors/UpdateTagsFromOsmAPI";
|
||||
|
||||
/**
|
||||
* Contains the global state: a bunch of UI-event sources
|
||||
|
@ -252,6 +253,7 @@ export default class State {
|
|||
|
||||
new TitleHandler(this.layoutToUse, this.selectedElement, this.allElements);
|
||||
|
||||
new UpdateTagsFromOsmAPI(this.selectedElement.map(el => el?.properties?.id), this.allElements)
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue