forked from MapComplete/MapComplete
Changesets are now kept open and reused to avoid tons of changesets to be created
This commit is contained in:
parent
0051c37494
commit
82f3525907
16 changed files with 162 additions and 270 deletions
25
test.ts
25
test.ts
|
@ -1,14 +1,19 @@
|
|||
import {OsmConnection} from "./Logic/Osm/OsmConnection";
|
||||
import {UIEventSource} from "./Logic/UIEventSource";
|
||||
import {ChangesetHandler} from "./Logic/Osm/ChangesetHandler";
|
||||
import {State} from "./State";
|
||||
import {LayerDefinition} from "./Customizations/LayerDefinition";
|
||||
import {AllKnownLayouts} from "./Customizations/AllKnownLayouts";
|
||||
import {Tag} from "./Logic/TagsFilter";
|
||||
import {VariableUiElement} from "./UI/Base/VariableUIElement";
|
||||
const bookcases = AllKnownLayouts.layoutsList[5];
|
||||
State.state = new State(bookcases);
|
||||
|
||||
new VariableUiElement(
|
||||
State.state.osmConnection.changesetHandler.currentChangeset
|
||||
).AttachTo("maindiv");
|
||||
|
||||
const conn = new OsmConnection(false, new UIEventSource<string>(""), false);
|
||||
conn.AttemptLogin();
|
||||
|
||||
|
||||
const csHandler = conn.changesetHandler;
|
||||
|
||||
conn.OnLoggedIn((ud) => {
|
||||
|
||||
|
||||
});
|
||||
window.setTimeout(() => {
|
||||
|
||||
State.state.osmConnection.changesetHandler.CloseChangeset("89995035")
|
||||
}, 1000)
|
Loading…
Add table
Add a link
Reference in a new issue