Add callback to updateFromOsmAPI

This commit is contained in:
pietervdvn 2021-05-05 20:43:36 +02:00
parent 78acb2794e
commit 5ce4140510

View file

@ -8,7 +8,7 @@ export default class UpdateTagsFromOsmAPI {
/*** /***
* This actor downloads the element from the OSM-API and updates the corresponding tags in the UI-updater. * This actor downloads the element from the OSM-API and updates the corresponding tags in the UI-updater.
*/ */
constructor(idToDownload: UIEventSource<string>, allElements: ElementStorage) { constructor(idToDownload: UIEventSource<string>, allElements: ElementStorage, callback? : (element: OsmObject) => void) {
idToDownload.addCallbackAndRun(id => { idToDownload.addCallbackAndRun(id => {
if (id === undefined) { if (id === undefined) {