Add feature which loads the selected element from overpass to update the tags to the latest version

This commit is contained in:
Pieter Vander Vennet 2021-04-21 01:26:13 +02:00
parent d7277838e4
commit c6b4ba43fb
4 changed files with 91 additions and 25 deletions

View file

@ -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)
}