This repository has been archived by the owner on Sep 10, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
StyleTemplate.json
101 lines (101 loc) · 2.21 KB
/
StyleTemplate.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
{
"version": 8,
"name": "OpenHuntingData",
"center": [
-118.291995,
36.578581
],
"zoom": 12,
"bearing": 0,
"pitch": 0,
"sources": {
"data": {
"type": "vector",
"tiles": [
"https://s3.amazonaws.com/data.openbounds.org/USAHunting/vector/US/MT/deerelklion/{z}/{x}/{y}.pbf"
],
"minzoom": 5,
"maxzoom": 13
}
},
"glyphs": "https://static.gaiagps.com/GaiaTopoGL/glyphs/{fontstack}/{range}.pbf",
"layers": [
{
"id": "regions-case",
"type": "line",
"source": "data",
"source-layer": "regions",
"paint": {
"line-color": "#ffffff",
"line-width": 6
}
},
{
"id": "regions",
"type": "line",
"source": "data",
"source-layer": "regions",
"paint": {
"line-color": "#000000",
"line-width": 2
}
},
{
"id": "line_labels",
"type": "symbol",
"source": "data",
"source-layer": "regions",
"minzoom": 10,
"layout": {
"symbol-avoid-edges": false,
"symbol-placement": "line",
"text-allow-overlap": false,
"text-anchor": "center",
"text-field": "{name}",
"text-font": [
"Bold"
],
"text-max-angle": 20,
"text-ignore-placement": false,
"text-justify": "center",
"text-keep-upright": false,
"text-line-height": 1,
"text-offset": [
0,
1
],
"text-rotation-alignment": "auto",
"text-size": 14,
"visibility": "visible"
},
"paint": {
"text-color": "#000000",
"text-halo-color": "#ffffff",
"text-halo-width": 2
}
},
{
"id": "point_labels",
"type": "symbol",
"source": "data",
"source-layer": "regions_labels",
"maxzoom": 12,
"layout": {
"text-field": "{name}",
"text-size": 14,
"symbol-placement": "point",
"symbol-avoid-edges": true,
"visibility": "visible",
"text-font": [
"Bold"
]
},
"paint": {
"text-color": "#000000",
"text-halo-color": "#ffffff",
"text-halo-width": 2
}
}
],
"id": "template"
}