mapcomplete/test.ts

27 lines
743 B
TypeScript
Raw Normal View History

2020-10-27 01:01:34 +01:00
//*
2020-10-09 21:11:52 +02:00
2020-10-23 01:20:48 +02:00
import {UIEventSource} from "./Logic/UIEventSource";
2020-11-02 18:59:21 +01:00
import {FeatureInfoBox} from "./UI/Popup/FeatureInfoBox";
import SharedLayers from "./Customizations/SharedLayers";
2020-10-27 01:01:34 +01:00
2020-11-02 18:59:21 +01:00
const tags = {
mapillary: "wweALGY5g8_T8UjGkcWCfw",
wikimedia_commons: "File:Boekenkast Sint-Lodewijks.jpg"
}
const src = new UIEventSource(tags);
2020-10-27 01:01:34 +01:00
2020-11-02 18:59:21 +01:00
new FeatureInfoBox(src, SharedLayers.sharedLayers["ghost_bike"]).AttachTo('maindiv');
2020-10-27 01:01:34 +01:00
2020-11-02 18:59:21 +01:00
//const subs = new SubstitutedTranslation(new Translation({"nl":"NL {image_carousel()} {image_upload()}"}), src)
//subs.AttachTo("maindiv")
2020-10-06 01:37:02 +02:00
/*/
import {Utils} from "./Utils";
import {FixedUiElement} from "./UI/Base/FixedUiElement";
Utils.generateStats((stats) => {
2020-10-06 01:37:02 +02:00
new FixedUiElement(stats).AttachTo('maindiv')
})
//*/