mapcomplete/test.ts

27 lines
743 B
TypeScript
Raw Normal View History

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