Fix widths

This commit is contained in:
Pieter Vander Vennet 2020-10-10 14:09:12 +02:00
parent b8a1683191
commit 5e220ccead
6 changed files with 33 additions and 62 deletions

View file

@ -3,6 +3,7 @@ import {UIElement} from "../UI/UIElement";
import Translations from "../UI/i18n/Translations";
import Combine from "../UI/Base/Combine";
import State from "../State";
import Translation from "../UI/i18n/Translation";
/**
* A layout is a collection of settings of the global view (thus: welcome text, title, selection of layers).
@ -50,12 +51,12 @@ export class Layout {
constructor(
id: string,
supportedLanguages: string[],
title: UIElement | string,
title: Translation | string,
layers: (LayerDefinition | string)[],
startzoom: number,
startLat: number,
startLon: number,
welcomeMessage: UIElement | string,
welcomeMessage: Translation | string,
gettingStartedPlzLogin: UIElement | string = new Combine([
Translations.t.general.getStartedLogin
.SetClass("soft")
@ -66,7 +67,7 @@ export class Layout {
welcomeTail: UIElement | string = "",
) {
this.supportedLanguages = supportedLanguages;
this.title = Translations.W(title)
this.title = Translations.WT(title)
this.startLon = startLon;
this.startLat = startLat;
this.startzoom = startzoom;