diff --git a/Customizations/Layout.ts b/Customizations/Layout.ts
index 4c259fb..2062787 100644
--- a/Customizations/Layout.ts
+++ b/Customizations/Layout.ts
@@ -16,7 +16,7 @@ export class Layout {
public name: string;
public icon: string = "./assets/logo.svg";
public title: UIElement;
- public description: string | UIElement = Translations.t.general.about;
+ public description: string | UIElement;
public socialImage: string = ""
public layers: LayerDefinition[];
diff --git a/InitUiElements.ts b/InitUiElements.ts
index 4da053d..e878540 100644
--- a/InitUiElements.ts
+++ b/InitUiElements.ts
@@ -10,6 +10,7 @@ import {OsmConnection} from "./Logic/OsmConnection";
import {Basemap} from "./Logic/Basemap";
import {UIEventSource} from "./UI/UIEventSource";
import {UIElement} from "./UI/UIElement";
+import {MoreScreen} from "./UI/MoreScreen";
export class InitUiElements {
@@ -30,19 +31,27 @@ export class InitUiElements {
}
- static InitWelcomeMessage(layoutToUse: Layout, osmConnection: OsmConnection, bm: Basemap,
- fullScreenMessage: UIEventSource`, content: welcome},
{header: `
`, content: Translations.t.general.openStreetMapIntro},
- {header: `
`, content: new ShareScreen(layoutToUse, bm.Location)}
+ {header: `
`, content: new ShareScreen(layoutToUse, bm.Location)},
+ {header: `
`, content: new MoreScreen(bm.Location)}
])
+ return fullOptions;
+
+ }
+
+
+ static InitWelcomeMessage(layoutToUse: Layout, osmConnection: OsmConnection, bm: Basemap,
+ fullScreenMessage: UIEventSource
`, content: welcome2},
- {header: `
`, content: Translations.t.general.openStreetMapIntro},
- {header: `
`, content: new ShareScreen(layoutToUse, bm.Location)}
- ])
-
-
+ const fullOptions2 = this.CreateWelcomePane(layoutToUse, osmConnection, bm);
fullScreenMessage.setData(fullOptions2)
new FixedUiElement(` `).onClick(() => {
fullScreenMessage.setData(fullOptions2)
diff --git a/UI/MoreScreen.ts b/UI/MoreScreen.ts
index e69de29..fab85f8 100644
--- a/UI/MoreScreen.ts
+++ b/UI/MoreScreen.ts
@@ -0,0 +1,58 @@
+import {UIElement} from "./UIElement";
+import {VerticalCombine} from "./Base/VerticalCombine";
+import Translations from "./i18n/Translations";
+import {AllKnownLayouts} from "../Customizations/AllKnownLayouts";
+import {FixedUiElement} from "./Base/FixedUiElement";
+import {Utils} from "../Utils";
+import {link} from "fs";
+import {UIEventSource} from "./UIEventSource";
+import {VariableUiElement} from "./Base/VariableUIElement";
+
+
+export class MoreScreen extends UIElement {
+ private currentLocation: UIEventSource<{ zoom: number, lat: number, lon: number }>;
+
+ constructor(currentLocation: UIEventSource<{ zoom: number, lat: number, lon: number }>) {
+ super(currentLocation);
+ this.currentLocation = currentLocation;
+ }
+
+ InnerRender(): string {
+ const tr = Translations.t.general.morescreen;
+
+ const els: UIElement[] = []
+ for (const k in AllKnownLayouts.allSets) {
+ if (k === "all") {
+ continue;
+ }
+ const layout = AllKnownLayouts.allSets[k]
+
+ const linkText =
+ `https://pietervdvn.github.io/MapComplete/${layout.name}.html?z=${this.currentLocation.data.zoom}&lat=${this.currentLocation.data.lat}&lon=${this.currentLocation.data.lon}
+ `
+ const link = new FixedUiElement(
+ `
+
+
+
+
+ ${Translations.W(layout.description).Render()}An Open Map
" +
+ en: "An Open Map
" +
"Wouldn't it be cool if there was a single map, which everyone could freely use and edit?" +
"A single place to store all geo-information? Then, all those websites with different, small and incompatible maps (which are always outdated) wouldn't be needed anymore.
OpenStreetMap is this map. The map data can be used for free (with attribution and publication of changes to that data)." + " On top of that, everyone can freely add new data and fix errors. This website uses OpenStreetMap as well. All the data is from there, and your answers and corrections are added there as well.
" + "A ton of people and application already use OpenStreetMap: Maps.me, OsmAnd, but also the maps at Facebook, Intsagram, Apple-maps and Bing-maps are (partly) powered by OpenStreetMap." + "If you change something here, it'll be reflected in those applications too - after their next update!
", - nl: "Zou het niet fantastisch zijn als er een open kaart zou zijn, die door iedereen aangepast én gebruikt kon worden? Waar iedereen zijn interesses aan zou kunnen toevoegen?" + "Dan zouden er geen duizend-en-één verschillende kleine kaartjes, websites, ... meer nodig zijn
" + "OpenStreetMap is deze open kaart. Je mag de kaartdata gratis gebruiken (mits bronvermelding en herpublicatie van aanpassingen). Daarenboven mag je de kaart ook gratis aanpassen als je een account maakt." + "Ook deze website is gebaseerd op OpenStreetMap. Als je hier een vraag beantwoord, gaat het antwoord daar ook naartoe
" + - "Tenslotte zijn er reeds vele gebruikers van OpenStreetMap. Denk maar Maps.me, OsmAnd, verschillende gespecialiseerde routeplanners, de achtergrondkaarten op Facebook, Instagram, ... Zelfs Apple Maps en Bing-Maps gebruiken OpenStreetMap in hun kaarten!
" + + "Tenslotte zijn er reeds vele gebruikers van OpenStreetMap. Denk maar Maps.me, OsmAnd, verschillende gespecialiseerde routeplanners, de achtergrondkaarten op Facebook, Instagram,...
Zelfs Apple Maps en Bing-Maps gebruiken OpenStreetMap in hun kaarten!