Add feature switches to layouts, add option to remove a layout from more-screen

This commit is contained in:
Pieter Vander Vennet 2020-07-29 16:05:02 +02:00
parent 21dd38c3c7
commit 7882747424
7 changed files with 19 additions and 8 deletions

View file

@ -22,10 +22,8 @@ export class MoreScreen extends UIElement {
const els: UIElement[] = []
for (const k in AllKnownLayouts.allSets) {
if (k === "all") {
continue;
}
const layout = AllKnownLayouts.allSets[k]
if(layout.hideFromOverview){continue}
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}