forked from MapComplete/MapComplete
Add cyclestreet theme, various bugfixes
This commit is contained in:
parent
72a744f60d
commit
60c15e9c8d
23 changed files with 412 additions and 211 deletions
7
index.ts
7
index.ts
|
@ -107,10 +107,15 @@ if (layoutToUse === undefined) {
|
|||
console.log("Using layout: ", layoutToUse.name);
|
||||
|
||||
State.state = new State(layoutToUse);
|
||||
|
||||
if (layoutToUse.hideFromOverview) {
|
||||
State.state.osmConnection.GetPreference("hidden-theme-" + layoutToUse.name + "-enabled").setData("true");
|
||||
}
|
||||
|
||||
if (layoutFromBase64 !== "false") {
|
||||
State.state.layoutDefinition = hash.substr(1);
|
||||
State.state.osmConnection.OnLoggedIn(() => {
|
||||
State.state.osmConnection.GetLongPreference("installed-theme-"+layoutToUse.name).setData(State.state.layoutDefinition);
|
||||
State.state.osmConnection.GetLongPreference("installed-theme-" + layoutToUse.name).setData(State.state.layoutDefinition);
|
||||
})
|
||||
}
|
||||
InitUiElements.InitBaseMap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue