From 2f9f1aefd1f62787d4cb18d719e47367df21fe11 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Mon, 15 Mar 2021 16:35:00 +0100 Subject: [PATCH] Hide themes --- Customizations/JSON/LayoutConfig.ts | 4 ++++ assets/themes/play_forests/play_forests.json | 2 +- assets/themes/speelplekken/speelplekken.json | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Customizations/JSON/LayoutConfig.ts b/Customizations/JSON/LayoutConfig.ts index 6678ad6..fa969ee 100644 --- a/Customizations/JSON/LayoutConfig.ts +++ b/Customizations/JSON/LayoutConfig.ts @@ -150,6 +150,10 @@ export default class LayoutConfig { } this.hideFromOverview = json.hideFromOverview ?? false; + // @ts-ignore + if(json.hideInOverview){ + throw "The json for "+this.id+" contains a 'hideInOverview'. Did you mean hideFromOverview instead?" + } this.lockLocation = json.lockLocation ?? false; this.enableUserBadge = json.enableUserBadge ?? true; this.enableShareScreen = json.enableShareScreen ?? true; diff --git a/assets/themes/play_forests/play_forests.json b/assets/themes/play_forests/play_forests.json index 1ceba5b..bd824ee 100644 --- a/assets/themes/play_forests/play_forests.json +++ b/assets/themes/play_forests/play_forests.json @@ -18,7 +18,7 @@ "startLat": 0, "startLon": 0, "startZoom": 1, - "hideInOverview": true, + "hideFromOverview": true, "widenFactor": 0.05, "socialImage": "", "layers": [ diff --git a/assets/themes/speelplekken/speelplekken.json b/assets/themes/speelplekken/speelplekken.json index c424214..ae6653f 100644 --- a/assets/themes/speelplekken/speelplekken.json +++ b/assets/themes/speelplekken/speelplekken.json @@ -14,7 +14,7 @@ ], "maintainer": "MapComplete", "icon": "./assets/layers/play_forest/icon.svg", - "hideInOverview": true, + "hideFromOverview": true, "lockLocation": true, "version": "0", "startLat": 51.17174,