diff --git a/src/UI/StatisticsGUI.ts b/src/UI/StatisticsGUI.ts index 90a3674e8..f3e659134 100644 --- a/src/UI/StatisticsGUI.ts +++ b/src/UI/StatisticsGUI.ts @@ -1,4 +1,5 @@ -import SvelteUIElement from "./Base/SvelteUIElement" import { default as StatisticsSvelte } from "../UI/Statistics/StatisticsGui.svelte" -new SvelteUIElement(StatisticsSvelte).AttachTo("main") +const target = document.getElementById("main") +target.innerHTML = "" +new StatisticsSvelte({ target }) diff --git a/src/index.ts b/src/index.ts index c5013c067..b74554698 100644 --- a/src/index.ts +++ b/src/index.ts @@ -52,7 +52,6 @@ async function main() { DetermineTheme.getTheme(), 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)) const state = new ThemeViewState(theme, availableLayers) const target = document.getElementById("maindiv")