forked from Canadian-Geospatial-Platform/geoview
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.json
61 lines (59 loc) · 1.99 KB
/
schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "GeoView Layers/Legend Config Schema",
"type": "object",
"version": 1.0,
"comments": "Configuration for GeoView layers package.",
"additionalProperties": false,
"properties": {
"reorderable": {
"type": "boolean",
"default": true,
"description": "Specifies if the items in the legend can be reordered."
},
"allowImport": {
"type": "boolean",
"default": true,
"description": "Specifies if the user-added layers are allowed."
},
"isOpen": {
"type": "object",
"description": "Specifies whether the legend is opened by default on initial loading of the map for small, medium, and large viewports.",
"properties": {
"large": {
"type": "boolean",
"default": false,
"description": "Whether the legend is opened by default on initial loading of the map for large viewports."
},
"medium": {
"type": "boolean",
"default": false,
"description": "Whether the legend is opened by default on initial loading of the map for medium viewports."
},
"small": {
"type": "boolean",
"default": false,
"description": "Whether the legend is opened by default on initial loading of the map for small viewports."
}
},
"additionalProperties": false
},
"suportedLanguages": {
"type": "array",
"uniqueItems": true,
"items": {
"type": "string",
"enum": ["en", "fr"]
},
"default": ["en", "fr"],
"description": "ISO 639-1 code indicating the languages supported by the configuration file.",
"minItems": 1
},
"version": {
"type": "string",
"enum": ["1.0"],
"description": "The schema version used to validate the configuration file. The schema should enumerate the list of versions accepted by this version of the viewer."
}
},
"required": ["suportedLanguages"]
}