forked from MapComplete/MapComplete
Add callback to updateFromOsmAPI
This commit is contained in:
parent
78acb2794e
commit
5ce4140510
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
*/
|
||||
constructor(idToDownload: UIEventSource<string>, allElements: ElementStorage) {
|
||||
constructor(idToDownload: UIEventSource<string>, allElements: ElementStorage, callback? : (element: OsmObject) => void) {
|
||||
|
||||
idToDownload.addCallbackAndRun(id => {
|
||||
if (id === undefined) {
|
||||
|
|
Loading…
Reference in a new issue