Chore: small refactorings
This commit is contained in:
parent
176a7d655b
commit
4525a9d5ed
2 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,5 @@
|
||||||
import SvelteUIElement from "./Base/SvelteUIElement"
|
|
||||||
import { default as StatisticsSvelte } from "../UI/Statistics/StatisticsGui.svelte"
|
import { default as StatisticsSvelte } from "../UI/Statistics/StatisticsGui.svelte"
|
||||||
|
|
||||||
new SvelteUIElement(StatisticsSvelte).AttachTo("main")
|
const target = document.getElementById("main")
|
||||||
|
target.innerHTML = ""
|
||||||
|
new StatisticsSvelte({ target })
|
||||||
|
|
|
@ -52,7 +52,6 @@ async function main() {
|
||||||
DetermineTheme.getTheme(),
|
DetermineTheme.getTheme(),
|
||||||
await getAvailableLayers(),
|
await getAvailableLayers(),
|
||||||
])
|
])
|
||||||
availableLayers?.delete("cycle_highways") // TODO remove after next cache.mapcomplete.org update
|
|
||||||
console.log("The available layers on server are", Array.from(availableLayers))
|
console.log("The available layers on server are", Array.from(availableLayers))
|
||||||
const state = new ThemeViewState(theme, availableLayers)
|
const state = new ThemeViewState(theme, availableLayers)
|
||||||
const target = document.getElementById("maindiv")
|
const target = document.getElementById("maindiv")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue