Hide themes

This commit is contained in:
pietervdvn 2021-03-15 16:35:00 +01:00
parent bad2248658
commit 2f9f1aefd1
3 changed files with 6 additions and 2 deletions

View file

@ -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;

View file

@ -18,7 +18,7 @@
"startLat": 0,
"startLon": 0,
"startZoom": 1,
"hideInOverview": true,
"hideFromOverview": true,
"widenFactor": 0.05,
"socialImage": "",
"layers": [

View file

@ -14,7 +14,7 @@
],
"maintainer": "MapComplete",
"icon": "./assets/layers/play_forest/icon.svg",
"hideInOverview": true,
"hideFromOverview": true,
"lockLocation": true,
"version": "0",
"startLat": 51.17174,