-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmap-styles.json
82 lines (80 loc) · 2.45 KB
/
map-styles.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://www2.visus.uni-stuttgart.de/damast/vis/schemas/map-styles.json",
"$comment": "Definition of map style configuration file, for Leaflet base layer map tiles",
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"key",
"url",
"name",
"is_mapbox"
],
"properties": {
"key": {
"type": "string",
"minLength": 1,
"$comment": "(unique) style key"
},
"url": {
"type": "string",
"minLength": 1,
"$comment": "URL template for tiles, see https://leafletjs.com/reference.html#tilelayer"
},
"name": {
"type": "string",
"minLength": 1,
"$comment": "name to be shown in drop-down menu"
},
"default_": {
"type": "boolean",
"$comment": "specifies that these tiles are shown by default. optional"
},
"is_mapbox": {
"type": "boolean",
"$comment": "specifies that these tiles are from MapBox, and that the custom copyright icon should be shown"
},
"options": {
"type": "object",
"additionalProperties": false,
"$comment": "additional configuration options. optional",
"properties": {
"attribution": {
"type": "string",
"$comment": "attribution text to be shown in the lower right of the map. can contain HTML <a> links"
},
"accessToken": {
"type": "string",
"$comment": "access token for tileset, can be used in `../url` as '{access_token}' (with underscore)"
},
"minZoom": {
"type": "integer",
"minimum": 0,
"maximum": 20,
"$comment": "minimum zoom level for which the layer is shown"
},
"maxZoom": {
"type": "integer",
"minimum": 0,
"maximum": 20,
"$comment": "maximum zoom level for which the layer is shown"
},
"minNativeZoom": {
"type": "integer",
"minimum": 0,
"maximum": 20,
"$comment": "minimum zoom level for which tiles are loaded"
},
"maxNativeZoom": {
"type": "integer",
"minimum": 0,
"maximum": 20,
"$comment": "maximum zoom level for which tiles are loaded"
}
}
}
}
}
}