Add cyclestreet theme, various bugfixes

This commit is contained in:
Pieter Vander Vennet 2020-08-27 18:44:16 +02:00
parent 72a744f60d
commit 60c15e9c8d
23 changed files with 412 additions and 211 deletions

View file

@ -11,7 +11,7 @@ import {FixedUiElement} from "./UI/Base/FixedUiElement";
import {State} from "./State";
import {TextField} from "./UI/Input/TextField";
const connection = new OsmConnection(true, new UIEventSource<string>(undefined), false);
const connection = new OsmConnection(true, new UIEventSource<string>(undefined), "customThemeGenerator", false);
connection.AttemptLogin();
let hash = window.location.hash?.substr(1);
@ -67,7 +67,7 @@ const loadFromTextField = new Button("Load", () => {
});
new Combine([
new Preview(themeGenerator.url, themeGenerator.themeObject),
new Preview(themeGenerator.url, themeGenerator.testurl, themeGenerator.themeObject),
loadFrom,
loadFromTextField,
"<span class='alert'>Loading from the text field will erase the current theme</span>",