Hide themes
This commit is contained in:
parent
bad2248658
commit
2f9f1aefd1
3 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
"startLat": 0,
|
||||
"startLon": 0,
|
||||
"startZoom": 1,
|
||||
"hideInOverview": true,
|
||||
"hideFromOverview": true,
|
||||
"widenFactor": 0.05,
|
||||
"socialImage": "",
|
||||
"layers": [
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
],
|
||||
"maintainer": "MapComplete",
|
||||
"icon": "./assets/layers/play_forest/icon.svg",
|
||||
"hideInOverview": true,
|
||||
"hideFromOverview": true,
|
||||
"lockLocation": true,
|
||||
"version": "0",
|
||||
"startLat": 51.17174,
|
||||
|
|
Loading…
Reference in a new issue