forked from MapComplete/MapComplete
First steps for a layer switch
This commit is contained in:
parent
0372f99d84
commit
1d0fbe701c
7 changed files with 422 additions and 3 deletions
15
test.ts
15
test.ts
|
@ -1,3 +1,14 @@
|
|||
import PrivacyPolicy from "./UI/BigComponents/PrivacyPolicy";
|
||||
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())
|
||||
|
||||
new PrivacyPolicy().AttachTo("maindiv")
|
||||
new BackgroundMapSwitch({
|
||||
locationControl: new UIEventSource<Loc>({
|
||||
zoom: 19,
|
||||
lat: 51.5,
|
||||
lon: 4.1
|
||||
})
|
||||
}).AttachTo("maindiv")
|
Loading…
Add table
Add a link
Reference in a new issue