forked from JJediny/DataSourceEditor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema3.hjson
46 lines (45 loc) · 1.22 KB
/
schema3.hjson
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
{
required:
[
"catalog"
]
type: object
title: "Terria data source"
description: "This file configures one or more data sources for TerriaJS."
defaultProperties: [ "catalog" ]
properties: {
# services: # This is [] in all the default config files. Not implemented yet?
# {
# items: [ ]
# type: array
#
# }
catalog: {
title: "Catalog"
$ref: "generated/items.json" # oh this does work? before I had to copy the list from that def
}
homeCamera: {
title: "Home Camera"
description: "Bounding box of initial view, given by four latitudes/longitudes"
required: [ "east", "north", "south", "west" ]
type: object
format: grid
properties: {
west: { type: "number" }
east: { type: "number" }
north: { type: "number" }
south: { type: "number" }
}
}
corsDomains: {
title: "CORS Domains"
description: "A list of domains that should be accessed through a proxy, due to not supporting CORS (cross-origin resource sharing)."
items: {
title: Host
description: "Host name without protocol. For example: arcgis.com"
type: string
}
type: array
}
}
}