-
Notifications
You must be signed in to change notification settings - Fork 261
Expand file tree
/
Copy pathlayer.schema.json
More file actions
95 lines (95 loc) · 2.9 KB
/
layer.schema.json
File metadata and controls
95 lines (95 loc) · 2.9 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "layer.schema.json",
"title": "Layer",
"description": "A quantized-mesh terrain layer.json.",
"properties": {
"attribution": {
"description": "The attribution (credit) string for the terrain.",
"type": "string",
"default": ""
},
"available": {
"description": "The tile availability information. The outer array is indexed by tile level. The inner array is a list of rectangles of availability at that level. Tiles themselves may also contain further availability information for their subtree.",
"type": "array",
"items": {
"type": "array",
"items": {
"$ref": "availabilityRectangle.schema.json"
}
}
},
"bounds": {
"description": "The bounding box of the terrain, expressed as west, south, east, north in degrees.",
"type": "array",
"default": [-180,-90,180,90],
"minItems": 4,
"maxItems": 4,
"items": {
"type": "number"
}
},
"description": {
"description": "The description of this terrain tileset.",
"type": "string",
"default": ""
},
"extensions": {
"description": "The extensions available for this tileset.",
"type": "array",
"items": {
"type": "string"
}
},
"format": {
"description": "The format of the terrain tiles. Should be `\"quantized-mesh-1.0\"`.",
"type": "string",
"default": "quantized-mesh-1.0"
},
"maxzoom": {
"description": "The maximum level for which there are any available tiles.",
"type": "integer"
},
"minzoom": {
"description": "The minimum level for which there are any available tiles.",
"type": "integer",
"default": 0
},
"metadataAvailability": {
"description": "The levels at metadata is found in tiles. For example, if this value is 10, then metadata is found at levels 0, 10, 20, etc.",
"type": "integer"
},
"name": {
"description": "The name of this terrain tileset.",
"type": "string",
"default": "Terrain"
},
"parentUrl": {
"description": "The URL of the parent layer.json that this one is layered on top of.",
"type": "string"
},
"projection": {
"description": "The map projection of this tileset. Valid values are `\"EPSG:4326\"` and `\"EPSG:3857\"`.",
"type": "string",
"default": "EPSG:4326"
},
"scheme": {
"description": "The tiling scheme. The only valid value is `\"tms\"`.",
"type": "string",
"default": "tms"
},
"tiles": {
"description": "The URL templates from which to obtain tiles.",
"type": "array",
"items": {
"type": "string"
}
},
"version": {
"description": "The version of this tileset.",
"type": "string",
"default": "1.0.0"
}
},
"required": ["tiles", "maxzoom"]
}