-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.json
116 lines (116 loc) · 2.85 KB
/
style.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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
{
"version": 8,
"name": "Adminstrative Area",
"metadata": {
"openmaptiles:version": "3.x",
"maputnik:renderer": "mbgljs"
},
"center": [0, 0],
"zoom": 1,
"bearing": 0,
"pitch": 0,
"sources": {
"openmaptiles": {
"type": "vector",
"url": "https://api.maptiler.com/tiles/v3/tiles.json?key={key}"
}
},
"glyphs": "https://api.maptiler.com/fonts/{fontstack}/{range}.pbf?key={key}",
"layers": [
{
"id": "background",
"type": "background",
"paint": {"background-color": "rgba(255, 255, 247, 1)"}
},
{
"id": "landcover-wood",
"type": "fill",
"source": "openmaptiles",
"source-layer": "landcover",
"filter": ["==", "class", "wood"],
"paint": {"fill-color": "rgba(213, 236, 201, 1)"}
},
{
"id": "waterway-river",
"type": "line",
"source": "openmaptiles",
"source-layer": "waterway",
"filter": ["all", ["==", "class", "river"]],
"paint": {"line-color": "rgba(150, 168, 218, 1)"}
},
{
"id": "water",
"type": "fill",
"source": "openmaptiles",
"source-layer": "water",
"paint": {"fill-color": "rgba(187, 217, 234, 1)"}
},
{
"id": "boundary_fill",
"type": "fill",
"source": "openmaptiles",
"source-layer": "boundary_polygon",
"filter": [
"all",
[
">",
["get", "admin_level"],
["step", ["zoom"], 0, 4, 2, 6, 4, 8, 6, 9, 7]
],
[
"<=",
["get", "admin_level"],
["step", ["zoom"], 3, 4, 4, 6, 6, 8, 7, 9, 8]
]
],
"paint": {"fill-opacity": 0.3}
},
{
"id": "boundary_border",
"type": "line",
"source": "openmaptiles",
"source-layer": "boundary_polygon",
"filter": [
"all",
[
">",
["get", "admin_level"],
["step", ["zoom"], 0, 4, 2, 6, 4, 8, 6, 9, 7]
],
[
"<=",
["get", "admin_level"],
["step", ["zoom"], 3, 4, 4, 6, 6, 8, 7, 9, 8]
]
],
"layout": {"line-cap": "round", "line-join": "round"},
"paint": {"line-width": ["-", 9, ["get", "admin_level"]]}
},
{
"id": "boundary_label",
"type": "symbol",
"source": "openmaptiles",
"source-layer": "boundary_label",
"filter": [
"all",
[
"==",
["get", "admin_level"],
["step", ["zoom"], 3, 4, 4, 6, 6, 8, 7, 9, 8]
]
],
"layout": {
"text-field": "{name}",
"text-font": ["Noto Sans Regular"],
"text-max-width": 8,
"text-size": {"base": 1.2, "stops": [[7, 14], [11, 16]]}
},
"paint": {
"text-color": "#333",
"text-halo-color": "rgba(255,255,255,0.8)",
"text-halo-width": 1.2
}
}
],
"id": "adminstrative-area"
}