MapComplete/test.ts

14 lines
554 B
TypeScript
Raw Normal View History

2021-11-18 23:42:03 +01:00
import BackgroundMapSwitch from "./UI/BigComponents/BackgroundMapSwitch";
import {UIEventSource} from "./Logic/UIEventSource";
import Loc from "./Models/Loc";
import AvailableBaseLayersImplementation from "./Logic/Actors/AvailableBaseLayersImplementation";
import AvailableBaseLayers from "./Logic/Actors/AvailableBaseLayers";
AvailableBaseLayers.implement(new AvailableBaseLayersImplementation())
2021-11-16 04:16:51 +01:00
2021-11-18 23:42:03 +01:00
new BackgroundMapSwitch({
locationControl: new UIEventSource<Loc>({
zoom: 19,
lat: 51.5,
lon: 4.1
})
}).AttachTo("maindiv")