forked from MapComplete/MapComplete
More cleanup of code: remove the overly complicated layer selection
This commit is contained in:
parent
257194c063
commit
9777a2666b
13 changed files with 199 additions and 304 deletions
13
test.ts
13
test.ts
|
@ -1,13 +1,4 @@
|
|||
import {ImageCarousel} from "./UI/Image/ImageCarousel";
|
||||
import {UIEventSource} from "./Logic/UIEventSource";
|
||||
import {OsmConnection} from "./Logic/Osm/OsmConnection";
|
||||
import DeleteImage from "./UI/Image/DeleteImage";
|
||||
|
||||
const connection = new OsmConnection(true, new UIEventSource<string>(undefined), "qsdf");
|
||||
connection.AttemptLogin();
|
||||
|
||||
|
||||
const imageCarousel = new ImageCarousel(new UIEventSource<any>({
|
||||
"image": "https://i.imgur.com/kX3rl3v.jpg"
|
||||
}), connection);
|
||||
|
||||
imageCarousel.AttachTo("maindiv")
|
||||
new DeleteImage("image", new UIEventSource<any>({"image":"url"})).AttachTo("maindiv");
|
Loading…
Add table
Add a link
Reference in a new issue