diff --git a/Customizations/JSON/LayoutConfig.ts b/Customizations/JSON/LayoutConfig.ts index 6678ad609..fa969ee7e 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 1ceba5b7a..bd824ee67 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 c4242142a..ae6653f7c 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,