@arenarium/maps 1.0.126 → 1.0.129
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -0
- package/dist/index.d.ts +152 -17
- package/dist/index.js +2 -2
- package/dist/main.cjs.js +2 -0
- package/dist/main.es.js +4536 -0
- package/dist/maplibre.cjs.js +1 -0
- package/dist/maplibre.es.js +1777 -0
- package/package.json +18 -8
|
@@ -0,0 +1,1777 @@
|
|
|
1
|
+
var s = Object.defineProperty;
|
|
2
|
+
var p = (a, e, t) => e in a ? s(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
|
|
3
|
+
var o = (a, e, t) => p(a, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
const i = class i {
|
|
5
|
+
constructor(e, t, n) {
|
|
6
|
+
o(this, "parameters", i.Parameters);
|
|
7
|
+
o(this, "MapClass");
|
|
8
|
+
o(this, "MapMarkerClass");
|
|
9
|
+
o(this, "map");
|
|
10
|
+
this.MapClass = e, this.MapMarkerClass = t, this.map = new this.MapClass({
|
|
11
|
+
...n,
|
|
12
|
+
pitchWithRotate: !1,
|
|
13
|
+
attributionControl: { customAttribution: "@arenarium/maps" }
|
|
14
|
+
}), this.map.dragRotate.disable(), this.map.keyboard.disable(), this.map.touchZoomRotate.disableRotation(), this.map.touchPitch.disable();
|
|
15
|
+
}
|
|
16
|
+
getMap() {
|
|
17
|
+
return this.map;
|
|
18
|
+
}
|
|
19
|
+
getContainer() {
|
|
20
|
+
return this.map.getContainer();
|
|
21
|
+
}
|
|
22
|
+
getZoom() {
|
|
23
|
+
return this.map.getZoom();
|
|
24
|
+
}
|
|
25
|
+
getWidth() {
|
|
26
|
+
return this.map.getCanvas().width;
|
|
27
|
+
}
|
|
28
|
+
getHeight() {
|
|
29
|
+
return this.map.getCanvas().height;
|
|
30
|
+
}
|
|
31
|
+
createMarker(e, t, n) {
|
|
32
|
+
const l = new this.MapMarkerClass({ element: n });
|
|
33
|
+
return l.setLngLat([t, e]), {
|
|
34
|
+
instance: l,
|
|
35
|
+
inserted: () => l._map != null,
|
|
36
|
+
insert: () => l.addTo(this.map),
|
|
37
|
+
remove: () => l.remove()
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
o(i, "Parameters", {
|
|
42
|
+
mapSize: 512,
|
|
43
|
+
zoomMin: 0,
|
|
44
|
+
zoomMax: 24,
|
|
45
|
+
zoomScale: 10
|
|
46
|
+
});
|
|
47
|
+
let r = i;
|
|
48
|
+
const c = {
|
|
49
|
+
version: 8,
|
|
50
|
+
sources: {
|
|
51
|
+
openmaptiles: {
|
|
52
|
+
type: "vector",
|
|
53
|
+
url: "https://tiles.openfreemap.org/planet"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
glyphs: "https://tiles.openfreemap.org/fonts/{fontstack}/{range}.pbf",
|
|
57
|
+
layers: [
|
|
58
|
+
{
|
|
59
|
+
id: "background",
|
|
60
|
+
type: "background",
|
|
61
|
+
paint: { "background-color": "rgba(120, 120, 120, 1)" }
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
id: "park",
|
|
65
|
+
type: "fill",
|
|
66
|
+
source: "openmaptiles",
|
|
67
|
+
"source-layer": "park",
|
|
68
|
+
filter: ["in", ["geometry-type"], ["literal", ["Polygon", "MultiPolygon"]]],
|
|
69
|
+
paint: { "fill-color": "rgba(128, 128, 128, 1)" }
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
id: "water",
|
|
73
|
+
type: "fill",
|
|
74
|
+
source: "openmaptiles",
|
|
75
|
+
"source-layer": "water",
|
|
76
|
+
filter: ["all", ["in", ["geometry-type"], ["literal", ["Polygon", "MultiPolygon"]]], ["!=", ["get", "brunnel"], "tunnel"]],
|
|
77
|
+
paint: { "fill-antialias": !0, "fill-color": "rgba(56, 56, 56, 1)" }
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
id: "landcover_ice_shelf",
|
|
81
|
+
type: "fill",
|
|
82
|
+
source: "openmaptiles",
|
|
83
|
+
"source-layer": "landcover",
|
|
84
|
+
maxzoom: 8,
|
|
85
|
+
filter: ["all", ["in", ["geometry-type"], ["literal", ["Polygon", "MultiPolygon"]]], ["==", ["get", "subclass"], "ice_shelf"]],
|
|
86
|
+
paint: { "fill-color": "rgba(128, 128, 128, 1)", "fill-opacity": 0.7 }
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
id: "landcover_glacier",
|
|
90
|
+
type: "fill",
|
|
91
|
+
source: "openmaptiles",
|
|
92
|
+
"source-layer": "landcover",
|
|
93
|
+
maxzoom: 8,
|
|
94
|
+
filter: ["all", ["in", ["geometry-type"], ["literal", ["Polygon", "MultiPolygon"]]], ["==", ["get", "subclass"], "glacier"]],
|
|
95
|
+
paint: {
|
|
96
|
+
"fill-color": "rgba(153, 153, 153, 1)",
|
|
97
|
+
"fill-opacity": ["interpolate", ["linear"], ["zoom"], 0, 1, 8, 0.5]
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
id: "landuse_residential",
|
|
102
|
+
type: "fill",
|
|
103
|
+
source: "openmaptiles",
|
|
104
|
+
"source-layer": "landuse",
|
|
105
|
+
maxzoom: 16,
|
|
106
|
+
filter: ["all", ["in", ["geometry-type"], ["literal", ["Polygon", "MultiPolygon"]]], ["==", ["get", "class"], "residential"]],
|
|
107
|
+
paint: {
|
|
108
|
+
"fill-color": "rgba(104, 104, 104, 1)",
|
|
109
|
+
"fill-opacity": ["interpolate", ["exponential", 0.6], ["zoom"], 8, 0.8, 9, 0.6]
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
id: "landcover_wood",
|
|
114
|
+
type: "fill",
|
|
115
|
+
source: "openmaptiles",
|
|
116
|
+
"source-layer": "landcover",
|
|
117
|
+
minzoom: 10,
|
|
118
|
+
filter: ["all", ["in", ["geometry-type"], ["literal", ["Polygon", "MultiPolygon"]]], ["==", ["get", "class"], "wood"]],
|
|
119
|
+
paint: {
|
|
120
|
+
"fill-color": "rgba(128, 128, 128, 1)",
|
|
121
|
+
"fill-opacity": ["interpolate", ["linear"], ["zoom"], 8, 0, 12, 1]
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
id: "waterway",
|
|
126
|
+
type: "line",
|
|
127
|
+
source: "openmaptiles",
|
|
128
|
+
"source-layer": "waterway",
|
|
129
|
+
filter: ["==", ["geometry-type"], "LineString"],
|
|
130
|
+
paint: { "line-color": "rgba(56, 56, 56, 1)" }
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
id: "building",
|
|
134
|
+
type: "fill",
|
|
135
|
+
source: "openmaptiles",
|
|
136
|
+
"source-layer": "building",
|
|
137
|
+
minzoom: 12,
|
|
138
|
+
paint: {
|
|
139
|
+
"fill-antialias": !0,
|
|
140
|
+
"fill-color": "rgba(136, 136, 136, 1)",
|
|
141
|
+
"fill-outline-color": "rgba(102, 102, 102, 1)"
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
id: "tunnel_motorway_casing",
|
|
146
|
+
type: "line",
|
|
147
|
+
source: "openmaptiles",
|
|
148
|
+
"source-layer": "transportation",
|
|
149
|
+
minzoom: 6,
|
|
150
|
+
filter: ["all", ["==", ["geometry-type"], "LineString"], ["all", ["==", ["get", "brunnel"], "tunnel"], ["==", ["get", "class"], "motorway"]]],
|
|
151
|
+
layout: { "line-cap": "butt", "line-join": "miter" },
|
|
152
|
+
paint: {
|
|
153
|
+
"line-color": "rgba(68, 68, 68, 1)",
|
|
154
|
+
"line-opacity": 1,
|
|
155
|
+
"line-width": ["interpolate", ["exponential", 1.4], ["zoom"], 5.8, 0, 6, 3, 20, 40]
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
id: "tunnel_motorway_inner",
|
|
160
|
+
type: "line",
|
|
161
|
+
source: "openmaptiles",
|
|
162
|
+
"source-layer": "transportation",
|
|
163
|
+
minzoom: 6,
|
|
164
|
+
filter: ["all", ["==", ["geometry-type"], "LineString"], ["all", ["==", ["get", "brunnel"], "tunnel"], ["==", ["get", "class"], "motorway"]]],
|
|
165
|
+
layout: { "line-cap": "round", "line-join": "round" },
|
|
166
|
+
paint: {
|
|
167
|
+
"line-color": "rgba(85, 85, 85, 1)",
|
|
168
|
+
"line-width": ["interpolate", ["exponential", 1.4], ["zoom"], 4, 2, 6, 1.3, 20, 30]
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
id: "aeroway-taxiway",
|
|
173
|
+
type: "line",
|
|
174
|
+
source: "openmaptiles",
|
|
175
|
+
"source-layer": "aeroway",
|
|
176
|
+
minzoom: 12,
|
|
177
|
+
filter: ["match", ["get", "class"], ["taxiway"], !0, !1],
|
|
178
|
+
layout: { "line-cap": "round", "line-join": "round" },
|
|
179
|
+
paint: {
|
|
180
|
+
"line-color": "rgba(85, 85, 85, 1)",
|
|
181
|
+
"line-opacity": 1,
|
|
182
|
+
"line-width": ["interpolate", ["exponential", 1.55], ["zoom"], 13, 1.8, 20, 20]
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
id: "aeroway-runway-casing",
|
|
187
|
+
type: "line",
|
|
188
|
+
source: "openmaptiles",
|
|
189
|
+
"source-layer": "aeroway",
|
|
190
|
+
minzoom: 11,
|
|
191
|
+
filter: ["match", ["get", "class"], ["runway"], !0, !1],
|
|
192
|
+
layout: { "line-cap": "round", "line-join": "round" },
|
|
193
|
+
paint: {
|
|
194
|
+
"line-color": "rgba(85, 85, 85, 1)",
|
|
195
|
+
"line-opacity": 1,
|
|
196
|
+
"line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 11, 6, 17, 55]
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
id: "aeroway-area",
|
|
201
|
+
type: "fill",
|
|
202
|
+
source: "openmaptiles",
|
|
203
|
+
"source-layer": "aeroway",
|
|
204
|
+
minzoom: 4,
|
|
205
|
+
filter: [
|
|
206
|
+
"all",
|
|
207
|
+
["in", ["geometry-type"], ["literal", ["Polygon", "MultiPolygon"]]],
|
|
208
|
+
["match", ["get", "class"], ["runway", "taxiway"], !0, !1]
|
|
209
|
+
],
|
|
210
|
+
paint: {
|
|
211
|
+
"fill-color": "rgba(128, 128, 128, 1)",
|
|
212
|
+
"fill-opacity": ["interpolate", ["linear"], ["zoom"], 13, 0, 14, 1]
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
id: "aeroway-runway",
|
|
217
|
+
type: "line",
|
|
218
|
+
source: "openmaptiles",
|
|
219
|
+
"source-layer": "aeroway",
|
|
220
|
+
minzoom: 11,
|
|
221
|
+
filter: ["all", ["match", ["get", "class"], ["runway"], !0, !1], ["==", ["geometry-type"], "LineString"]],
|
|
222
|
+
layout: { "line-cap": "round", "line-join": "round" },
|
|
223
|
+
paint: {
|
|
224
|
+
"line-color": "rgba(68, 68, 68, 1)",
|
|
225
|
+
"line-opacity": 1,
|
|
226
|
+
"line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 11, 4, 17, 50]
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
id: "road_area_pier",
|
|
231
|
+
type: "fill",
|
|
232
|
+
source: "openmaptiles",
|
|
233
|
+
"source-layer": "transportation",
|
|
234
|
+
filter: ["all", ["in", ["geometry-type"], ["literal", ["Polygon", "MultiPolygon"]]], ["==", ["get", "class"], "pier"]],
|
|
235
|
+
paint: { "fill-antialias": !0, "fill-color": "rgba(50, 50, 50, 1)" }
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
id: "road_pier",
|
|
239
|
+
type: "line",
|
|
240
|
+
source: "openmaptiles",
|
|
241
|
+
"source-layer": "transportation",
|
|
242
|
+
filter: ["all", ["==", ["geometry-type"], "LineString"], ["match", ["get", "class"], ["pier"], !0, !1]],
|
|
243
|
+
layout: { "line-cap": "round", "line-join": "round" },
|
|
244
|
+
paint: {
|
|
245
|
+
"line-color": "rgba(52, 52, 52, 1)",
|
|
246
|
+
"line-width": ["interpolate", ["exponential", 1.2], ["zoom"], 15, 1, 17, 4]
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
id: "highway_path",
|
|
251
|
+
type: "line",
|
|
252
|
+
source: "openmaptiles",
|
|
253
|
+
"source-layer": "transportation",
|
|
254
|
+
filter: ["all", ["==", ["geometry-type"], "LineString"], ["==", ["get", "class"], "path"]],
|
|
255
|
+
layout: { "line-cap": "round", "line-join": "round" },
|
|
256
|
+
paint: {
|
|
257
|
+
"line-color": "rgba(88, 88, 88, 1)",
|
|
258
|
+
"line-opacity": 0.9,
|
|
259
|
+
"line-width": ["interpolate", ["exponential", 1.2], ["zoom"], 13, 1, 20, 10]
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
id: "highway_minor",
|
|
264
|
+
type: "line",
|
|
265
|
+
source: "openmaptiles",
|
|
266
|
+
"source-layer": "transportation",
|
|
267
|
+
minzoom: 8,
|
|
268
|
+
filter: ["all", ["==", ["geometry-type"], "LineString"], ["match", ["get", "class"], ["minor", "service", "track"], !0, !1]],
|
|
269
|
+
layout: { "line-cap": "round", "line-join": "round" },
|
|
270
|
+
paint: {
|
|
271
|
+
"line-opacity": 0.9,
|
|
272
|
+
"line-width": ["interpolate", ["exponential", 1.55], ["zoom"], 13, 1.8, 20, 20],
|
|
273
|
+
"line-color": "rgba(102, 102, 102, 1)"
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
id: "highway_major_casing",
|
|
278
|
+
type: "line",
|
|
279
|
+
source: "openmaptiles",
|
|
280
|
+
"source-layer": "transportation",
|
|
281
|
+
minzoom: 11,
|
|
282
|
+
filter: ["all", ["==", ["geometry-type"], "LineString"], ["match", ["get", "class"], ["primary", "secondary", "tertiary", "trunk"], !0, !1]],
|
|
283
|
+
layout: { "line-cap": "butt", "line-join": "miter" },
|
|
284
|
+
paint: {
|
|
285
|
+
"line-dasharray": [12, 0],
|
|
286
|
+
"line-width": ["interpolate", ["exponential", 1.3], ["zoom"], 10, 3, 20, 23],
|
|
287
|
+
"line-color": "rgba(85, 85, 85, 1)"
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
id: "highway_major_inner",
|
|
292
|
+
type: "line",
|
|
293
|
+
source: "openmaptiles",
|
|
294
|
+
"source-layer": "transportation",
|
|
295
|
+
minzoom: 11,
|
|
296
|
+
filter: ["all", ["==", ["geometry-type"], "LineString"], ["match", ["get", "class"], ["primary", "secondary", "tertiary", "trunk"], !0, !1]],
|
|
297
|
+
layout: { "line-cap": "round", "line-join": "round" },
|
|
298
|
+
paint: {
|
|
299
|
+
"line-color": "rgba(102, 102, 102, 1)",
|
|
300
|
+
"line-width": ["interpolate", ["exponential", 1.3], ["zoom"], 10, 2, 20, 20]
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
id: "highway_major_subtle",
|
|
305
|
+
type: "line",
|
|
306
|
+
source: "openmaptiles",
|
|
307
|
+
"source-layer": "transportation",
|
|
308
|
+
maxzoom: 11,
|
|
309
|
+
filter: ["all", ["==", ["geometry-type"], "LineString"], ["match", ["get", "class"], ["primary", "secondary", "tertiary", "trunk"], !0, !1]],
|
|
310
|
+
layout: { "line-cap": "round", "line-join": "round" },
|
|
311
|
+
paint: { "line-width": 2, "line-color": "rgba(85, 85, 85, 1)" }
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
id: "highway_motorway_casing",
|
|
315
|
+
type: "line",
|
|
316
|
+
source: "openmaptiles",
|
|
317
|
+
"source-layer": "transportation",
|
|
318
|
+
minzoom: 6,
|
|
319
|
+
filter: [
|
|
320
|
+
"all",
|
|
321
|
+
["==", ["geometry-type"], "LineString"],
|
|
322
|
+
["all", ["match", ["get", "brunnel"], ["bridge", "tunnel"], !1, !0], ["==", ["get", "class"], "motorway"]]
|
|
323
|
+
],
|
|
324
|
+
layout: { "line-cap": "butt", "line-join": "miter" },
|
|
325
|
+
paint: {
|
|
326
|
+
"line-color": "rgba(68, 68, 68, 1)",
|
|
327
|
+
"line-dasharray": [2, 0],
|
|
328
|
+
"line-opacity": 1,
|
|
329
|
+
"line-width": ["interpolate", ["exponential", 1.4], ["zoom"], 5.8, 0, 6, 3, 20, 40]
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
id: "highway_motorway_inner",
|
|
334
|
+
type: "line",
|
|
335
|
+
source: "openmaptiles",
|
|
336
|
+
"source-layer": "transportation",
|
|
337
|
+
minzoom: 6,
|
|
338
|
+
filter: [
|
|
339
|
+
"all",
|
|
340
|
+
["==", ["geometry-type"], "LineString"],
|
|
341
|
+
["all", ["match", ["get", "brunnel"], ["bridge", "tunnel"], !1, !0], ["==", ["get", "class"], "motorway"]]
|
|
342
|
+
],
|
|
343
|
+
layout: { "line-cap": "round", "line-join": "round" },
|
|
344
|
+
paint: {
|
|
345
|
+
"line-color": ["interpolate", ["linear"], ["zoom"], 5.8, "rgba(102, 102, 102, 1)", 6, "rgba(85, 85, 85, 1)"],
|
|
346
|
+
"line-width": ["interpolate", ["exponential", 1.4], ["zoom"], 4, 2, 6, 1.3, 20, 30]
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
id: "highway_motorway_subtle",
|
|
351
|
+
type: "line",
|
|
352
|
+
source: "openmaptiles",
|
|
353
|
+
"source-layer": "transportation",
|
|
354
|
+
maxzoom: 6,
|
|
355
|
+
filter: ["all", ["==", ["geometry-type"], "LineString"], ["==", ["get", "class"], "motorway"]],
|
|
356
|
+
layout: { "line-cap": "round", "line-join": "round" },
|
|
357
|
+
paint: {
|
|
358
|
+
"line-color": "rgba(102, 102, 102, 1)",
|
|
359
|
+
"line-width": ["interpolate", ["exponential", 1.4], ["zoom"], 4, 2, 6, 1.3]
|
|
360
|
+
}
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
id: "railway_transit",
|
|
364
|
+
type: "line",
|
|
365
|
+
source: "openmaptiles",
|
|
366
|
+
"source-layer": "transportation",
|
|
367
|
+
minzoom: 16,
|
|
368
|
+
filter: [
|
|
369
|
+
"all",
|
|
370
|
+
["==", ["geometry-type"], "LineString"],
|
|
371
|
+
["all", ["==", ["get", "class"], "transit"], ["match", ["get", "brunnel"], ["tunnel"], !1, !0]]
|
|
372
|
+
],
|
|
373
|
+
layout: { "line-join": "round" },
|
|
374
|
+
paint: { "line-color": "rgba(85, 85, 85, 1)", "line-width": 3 }
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
id: "railway_transit_dashline",
|
|
378
|
+
type: "line",
|
|
379
|
+
source: "openmaptiles",
|
|
380
|
+
"source-layer": "transportation",
|
|
381
|
+
minzoom: 16,
|
|
382
|
+
filter: [
|
|
383
|
+
"all",
|
|
384
|
+
["==", ["geometry-type"], "LineString"],
|
|
385
|
+
["all", ["==", ["get", "class"], "transit"], ["match", ["get", "brunnel"], ["tunnel"], !1, !0]]
|
|
386
|
+
],
|
|
387
|
+
layout: { "line-join": "round" },
|
|
388
|
+
paint: {
|
|
389
|
+
"line-color": "rgba(68, 68, 68, 1)",
|
|
390
|
+
"line-dasharray": [3, 3],
|
|
391
|
+
"line-width": 2
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
id: "railway_service",
|
|
396
|
+
type: "line",
|
|
397
|
+
source: "openmaptiles",
|
|
398
|
+
"source-layer": "transportation",
|
|
399
|
+
minzoom: 16,
|
|
400
|
+
filter: ["all", ["==", ["geometry-type"], "LineString"], ["all", ["==", ["get", "class"], "rail"], ["has", "service"]]],
|
|
401
|
+
layout: { "line-join": "round" },
|
|
402
|
+
paint: { "line-color": "rgba(102, 102, 102, 1)", "line-width": 3 }
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
id: "railway_service_dashline",
|
|
406
|
+
type: "line",
|
|
407
|
+
source: "openmaptiles",
|
|
408
|
+
"source-layer": "transportation",
|
|
409
|
+
minzoom: 16,
|
|
410
|
+
filter: ["all", ["==", ["geometry-type"], "LineString"], ["==", ["get", "class"], "rail"], ["has", "service"]],
|
|
411
|
+
layout: { "line-join": "round" },
|
|
412
|
+
paint: {
|
|
413
|
+
"line-color": "rgba(85, 85, 85, 1)",
|
|
414
|
+
"line-dasharray": [3, 3],
|
|
415
|
+
"line-width": 2
|
|
416
|
+
}
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
id: "railway",
|
|
420
|
+
type: "line",
|
|
421
|
+
source: "openmaptiles",
|
|
422
|
+
"source-layer": "transportation",
|
|
423
|
+
minzoom: 13,
|
|
424
|
+
filter: ["all", ["==", ["geometry-type"], "LineString"], ["all", ["!", ["has", "service"]], ["==", ["get", "class"], "rail"]]],
|
|
425
|
+
layout: { "line-join": "round" },
|
|
426
|
+
paint: {
|
|
427
|
+
"line-color": "rgba(85, 85, 85, 1)",
|
|
428
|
+
"line-width": ["interpolate", ["exponential", 1.3], ["zoom"], 16, 3, 20, 7]
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
id: "railway_dashline",
|
|
433
|
+
type: "line",
|
|
434
|
+
source: "openmaptiles",
|
|
435
|
+
"source-layer": "transportation",
|
|
436
|
+
minzoom: 13,
|
|
437
|
+
filter: ["all", ["==", ["geometry-type"], "LineString"], ["all", ["!", ["has", "service"]], ["==", ["get", "class"], "rail"]]],
|
|
438
|
+
layout: { "line-join": "round" },
|
|
439
|
+
paint: {
|
|
440
|
+
"line-color": "rgba(68, 68, 68, 1)",
|
|
441
|
+
"line-dasharray": [3, 3],
|
|
442
|
+
"line-width": ["interpolate", ["exponential", 1.3], ["zoom"], 16, 2, 20, 6]
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
id: "highway_motorway_bridge_casing",
|
|
447
|
+
type: "line",
|
|
448
|
+
source: "openmaptiles",
|
|
449
|
+
"source-layer": "transportation",
|
|
450
|
+
minzoom: 6,
|
|
451
|
+
filter: ["all", ["==", ["geometry-type"], "LineString"], ["all", ["==", ["get", "brunnel"], "bridge"], ["==", ["get", "class"], "motorway"]]],
|
|
452
|
+
layout: { "line-cap": "butt", "line-join": "miter" },
|
|
453
|
+
paint: {
|
|
454
|
+
"line-color": "rgba(68, 68, 68, 1)",
|
|
455
|
+
"line-dasharray": [2, 0],
|
|
456
|
+
"line-opacity": 1,
|
|
457
|
+
"line-width": ["interpolate", ["exponential", 1.4], ["zoom"], 5.8, 0, 6, 5, 20, 45]
|
|
458
|
+
}
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
id: "highway_motorway_bridge_inner",
|
|
462
|
+
type: "line",
|
|
463
|
+
source: "openmaptiles",
|
|
464
|
+
"source-layer": "transportation",
|
|
465
|
+
minzoom: 6,
|
|
466
|
+
filter: ["all", ["==", ["geometry-type"], "LineString"], ["all", ["==", ["get", "brunnel"], "bridge"], ["==", ["get", "class"], "motorway"]]],
|
|
467
|
+
layout: { "line-cap": "round", "line-join": "round" },
|
|
468
|
+
paint: {
|
|
469
|
+
"line-color": ["interpolate", ["linear"], ["zoom"], 5.8, "rgba(102, 102, 102, 1)", 6, "rgba(85, 85, 85, 1)"],
|
|
470
|
+
"line-width": ["interpolate", ["exponential", 1.4], ["zoom"], 4, 2, 6, 1.3, 20, 30]
|
|
471
|
+
}
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
id: "boundary_3",
|
|
475
|
+
type: "line",
|
|
476
|
+
source: "openmaptiles",
|
|
477
|
+
"source-layer": "boundary",
|
|
478
|
+
minzoom: 8,
|
|
479
|
+
filter: [
|
|
480
|
+
"all",
|
|
481
|
+
[">=", ["get", "admin_level"], 3],
|
|
482
|
+
["<=", ["get", "admin_level"], 6],
|
|
483
|
+
["!=", ["get", "maritime"], 1],
|
|
484
|
+
["!=", ["get", "disputed"], 1],
|
|
485
|
+
["!", ["has", "claimed_by"]]
|
|
486
|
+
],
|
|
487
|
+
paint: {
|
|
488
|
+
"line-color": "rgba(68, 68, 68, 1)",
|
|
489
|
+
"line-dasharray": [1, 1],
|
|
490
|
+
"line-width": ["interpolate", ["linear"], ["zoom"], 7, 1, 11, 2]
|
|
491
|
+
}
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
id: "boundary_2",
|
|
495
|
+
type: "line",
|
|
496
|
+
source: "openmaptiles",
|
|
497
|
+
"source-layer": "boundary",
|
|
498
|
+
filter: ["all", ["==", ["get", "admin_level"], 2], ["!=", ["get", "maritime"], 1], ["!=", ["get", "disputed"], 1], ["!", ["has", "claimed_by"]]],
|
|
499
|
+
layout: { "line-cap": "round", "line-join": "round" },
|
|
500
|
+
paint: {
|
|
501
|
+
"line-color": "rgba(51, 51, 51, 1)",
|
|
502
|
+
"line-opacity": ["interpolate", ["linear"], ["zoom"], 0, 0.4, 4, 1],
|
|
503
|
+
"line-width": ["interpolate", ["linear"], ["zoom"], 3, 1, 5, 1.2, 12, 3]
|
|
504
|
+
}
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
id: "boundary_disputed",
|
|
508
|
+
type: "line",
|
|
509
|
+
source: "openmaptiles",
|
|
510
|
+
"source-layer": "boundary",
|
|
511
|
+
filter: ["all", ["!=", ["get", "maritime"], 1], ["==", ["get", "disputed"], 1]],
|
|
512
|
+
paint: {
|
|
513
|
+
"line-color": "rgba(51, 51, 51, 1)",
|
|
514
|
+
"line-dasharray": [1, 2],
|
|
515
|
+
"line-width": ["interpolate", ["linear"], ["zoom"], 3, 1, 5, 1.2, 12, 3]
|
|
516
|
+
}
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
id: "waterway_line_label",
|
|
520
|
+
type: "symbol",
|
|
521
|
+
source: "openmaptiles",
|
|
522
|
+
"source-layer": "waterway",
|
|
523
|
+
minzoom: 10,
|
|
524
|
+
filter: ["==", ["geometry-type"], "LineString"],
|
|
525
|
+
layout: {
|
|
526
|
+
"symbol-placement": "line",
|
|
527
|
+
"symbol-spacing": 350,
|
|
528
|
+
"text-field": ["coalesce", ["get", "name_en"], ["get", "name:latin"]],
|
|
529
|
+
"text-font": ["Noto Sans Regular"],
|
|
530
|
+
"text-letter-spacing": 0.2,
|
|
531
|
+
"text-max-width": 5,
|
|
532
|
+
"text-size": 14
|
|
533
|
+
},
|
|
534
|
+
paint: {
|
|
535
|
+
"text-color": "rgba(34, 34, 34, 1)",
|
|
536
|
+
"text-halo-color": "rgba(255, 255, 255, 1)",
|
|
537
|
+
"text-halo-width": 1
|
|
538
|
+
}
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
id: "water_name_point_label",
|
|
542
|
+
type: "symbol",
|
|
543
|
+
source: "openmaptiles",
|
|
544
|
+
"source-layer": "water_name",
|
|
545
|
+
minzoom: 0,
|
|
546
|
+
filter: ["==", ["geometry-type"], "Point"],
|
|
547
|
+
layout: { visibility: "none" }
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
id: "water_name_line_label",
|
|
551
|
+
type: "symbol",
|
|
552
|
+
source: "openmaptiles",
|
|
553
|
+
"source-layer": "water_name",
|
|
554
|
+
filter: ["==", ["geometry-type"], "LineString"],
|
|
555
|
+
layout: { visibility: "none" }
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
id: "highway-name-path",
|
|
559
|
+
type: "symbol",
|
|
560
|
+
source: "openmaptiles",
|
|
561
|
+
"source-layer": "transportation_name",
|
|
562
|
+
minzoom: 15.5,
|
|
563
|
+
filter: ["==", ["get", "class"], "path"],
|
|
564
|
+
layout: {
|
|
565
|
+
"symbol-placement": "line",
|
|
566
|
+
"text-field": ["get", "name:latin"],
|
|
567
|
+
"text-font": ["Noto Sans Regular"],
|
|
568
|
+
"text-rotation-alignment": "map",
|
|
569
|
+
"text-size": ["interpolate", ["linear"], ["zoom"], 13, 12, 14, 13]
|
|
570
|
+
},
|
|
571
|
+
paint: {
|
|
572
|
+
"text-color": "rgba(158, 158, 158, 1)",
|
|
573
|
+
"text-halo-color": "rgba(244, 244, 244, 1)",
|
|
574
|
+
"text-halo-width": 0.5
|
|
575
|
+
}
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
id: "highway-name-minor",
|
|
579
|
+
type: "symbol",
|
|
580
|
+
source: "openmaptiles",
|
|
581
|
+
"source-layer": "transportation_name",
|
|
582
|
+
minzoom: 15,
|
|
583
|
+
filter: ["all", ["==", ["geometry-type"], "LineString"], ["match", ["get", "class"], ["minor", "service", "track"], !0, !1]],
|
|
584
|
+
layout: {
|
|
585
|
+
"symbol-placement": "line",
|
|
586
|
+
"text-field": ["get", "name:latin"],
|
|
587
|
+
"text-font": ["Noto Sans Regular"],
|
|
588
|
+
"text-rotation-alignment": "map",
|
|
589
|
+
"text-size": ["interpolate", ["linear"], ["zoom"], 13, 12, 14, 13]
|
|
590
|
+
},
|
|
591
|
+
paint: {
|
|
592
|
+
"text-color": "rgba(17, 17, 17, 1)",
|
|
593
|
+
"text-halo-width": 1,
|
|
594
|
+
"text-halo-color": "rgba(255, 255, 255, 1)"
|
|
595
|
+
}
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
id: "highway-name-major",
|
|
599
|
+
type: "symbol",
|
|
600
|
+
source: "openmaptiles",
|
|
601
|
+
"source-layer": "transportation_name",
|
|
602
|
+
minzoom: 12.2,
|
|
603
|
+
filter: ["match", ["get", "class"], ["primary", "secondary", "tertiary", "trunk"], !0, !1],
|
|
604
|
+
layout: {
|
|
605
|
+
"symbol-placement": "line",
|
|
606
|
+
"text-field": ["get", "name:latin"],
|
|
607
|
+
"text-font": ["Noto Sans Regular"],
|
|
608
|
+
"text-rotation-alignment": "map",
|
|
609
|
+
"text-size": ["interpolate", ["linear"], ["zoom"], 13, 12, 14, 13]
|
|
610
|
+
},
|
|
611
|
+
paint: {
|
|
612
|
+
"text-color": "rgba(34, 34, 34, 1)",
|
|
613
|
+
"text-halo-width": 1,
|
|
614
|
+
"text-halo-color": "rgba(255, 255, 255, 1)"
|
|
615
|
+
}
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
id: "highway-shield-non-us",
|
|
619
|
+
type: "symbol",
|
|
620
|
+
source: "openmaptiles",
|
|
621
|
+
"source-layer": "transportation_name",
|
|
622
|
+
minzoom: 11,
|
|
623
|
+
filter: [
|
|
624
|
+
"all",
|
|
625
|
+
["<=", ["get", "ref_length"], 6],
|
|
626
|
+
["==", ["geometry-type"], "LineString"],
|
|
627
|
+
["match", ["get", "network"], ["us-highway", "us-interstate", "us-state"], !1, !0]
|
|
628
|
+
],
|
|
629
|
+
layout: {
|
|
630
|
+
"icon-rotation-alignment": "viewport",
|
|
631
|
+
"icon-size": 1,
|
|
632
|
+
"symbol-placement": ["step", ["zoom"], "point", 11, "line"],
|
|
633
|
+
"symbol-spacing": 200,
|
|
634
|
+
"text-field": ["to-string", ["get", "ref"]],
|
|
635
|
+
"text-font": ["Noto Sans Regular"],
|
|
636
|
+
"text-rotation-alignment": "viewport",
|
|
637
|
+
"text-size": 10
|
|
638
|
+
},
|
|
639
|
+
paint: {
|
|
640
|
+
"text-halo-color": "rgba(255, 255, 255, 1)",
|
|
641
|
+
"text-color": "rgba(255, 255, 255, 1)"
|
|
642
|
+
}
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
id: "highway-shield-us-interstate",
|
|
646
|
+
type: "symbol",
|
|
647
|
+
source: "openmaptiles",
|
|
648
|
+
"source-layer": "transportation_name",
|
|
649
|
+
minzoom: 11,
|
|
650
|
+
filter: [
|
|
651
|
+
"all",
|
|
652
|
+
["<=", ["get", "ref_length"], 6],
|
|
653
|
+
["==", ["geometry-type"], "LineString"],
|
|
654
|
+
["match", ["get", "network"], ["us-interstate"], !0, !1]
|
|
655
|
+
],
|
|
656
|
+
layout: {
|
|
657
|
+
"icon-rotation-alignment": "viewport",
|
|
658
|
+
"icon-size": 1,
|
|
659
|
+
"symbol-placement": ["step", ["zoom"], "point", 7, "line", 8, "line"],
|
|
660
|
+
"symbol-spacing": 200,
|
|
661
|
+
"text-field": ["to-string", ["get", "ref"]],
|
|
662
|
+
"text-font": ["Noto Sans Regular"],
|
|
663
|
+
"text-rotation-alignment": "viewport",
|
|
664
|
+
"text-size": 10
|
|
665
|
+
}
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
id: "road_shield_us",
|
|
669
|
+
type: "symbol",
|
|
670
|
+
source: "openmaptiles",
|
|
671
|
+
"source-layer": "transportation_name",
|
|
672
|
+
minzoom: 12,
|
|
673
|
+
filter: [
|
|
674
|
+
"all",
|
|
675
|
+
["<=", ["get", "ref_length"], 6],
|
|
676
|
+
["==", ["geometry-type"], "LineString"],
|
|
677
|
+
["match", ["get", "network"], ["us-highway", "us-state"], !0, !1]
|
|
678
|
+
],
|
|
679
|
+
layout: {
|
|
680
|
+
"icon-rotation-alignment": "viewport",
|
|
681
|
+
"icon-size": 1,
|
|
682
|
+
"symbol-placement": ["step", ["zoom"], "point", 11, "line"],
|
|
683
|
+
"symbol-spacing": 200,
|
|
684
|
+
"text-field": ["to-string", ["get", "ref"]],
|
|
685
|
+
"text-font": ["Noto Sans Regular"],
|
|
686
|
+
"text-rotation-alignment": "viewport",
|
|
687
|
+
"text-size": 10
|
|
688
|
+
}
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
id: "airport",
|
|
692
|
+
type: "symbol",
|
|
693
|
+
source: "openmaptiles",
|
|
694
|
+
"source-layer": "aerodrome_label",
|
|
695
|
+
minzoom: 11,
|
|
696
|
+
filter: ["all", ["has", "iata"]],
|
|
697
|
+
layout: {
|
|
698
|
+
"icon-size": 1,
|
|
699
|
+
"text-anchor": "top",
|
|
700
|
+
"text-field": ["coalesce", ["get", "name_en"], ["get", "name:latin"]],
|
|
701
|
+
"text-font": ["Noto Sans Regular"],
|
|
702
|
+
"text-max-width": 9,
|
|
703
|
+
"text-offset": [0, 0.6],
|
|
704
|
+
"text-optional": !0,
|
|
705
|
+
"text-padding": 2,
|
|
706
|
+
"text-size": 12
|
|
707
|
+
},
|
|
708
|
+
paint: {
|
|
709
|
+
"text-color": "rgba(51, 51, 51, 1)",
|
|
710
|
+
"text-halo-color": "rgba(255, 255, 255, 1)",
|
|
711
|
+
"text-halo-width": 1
|
|
712
|
+
}
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
id: "label_other",
|
|
716
|
+
type: "symbol",
|
|
717
|
+
source: "openmaptiles",
|
|
718
|
+
"source-layer": "place",
|
|
719
|
+
minzoom: 8,
|
|
720
|
+
filter: ["match", ["get", "class"], ["city", "continent", "country", "state", "town", "village"], !1, !0],
|
|
721
|
+
layout: {
|
|
722
|
+
"text-field": ["get", "name:latin"],
|
|
723
|
+
"text-font": ["Noto Sans Regular"],
|
|
724
|
+
"text-letter-spacing": 0.1,
|
|
725
|
+
"text-max-width": 9,
|
|
726
|
+
"text-size": ["interpolate", ["linear"], ["zoom"], 8, 9, 12, 10],
|
|
727
|
+
"text-transform": "uppercase"
|
|
728
|
+
},
|
|
729
|
+
paint: {
|
|
730
|
+
"text-color": "rgba(17, 17, 17, 1)",
|
|
731
|
+
"text-halo-color": "rgba(255, 255, 255, 1)",
|
|
732
|
+
"text-halo-width": 1
|
|
733
|
+
}
|
|
734
|
+
},
|
|
735
|
+
{
|
|
736
|
+
id: "label_village",
|
|
737
|
+
type: "symbol",
|
|
738
|
+
source: "openmaptiles",
|
|
739
|
+
"source-layer": "place",
|
|
740
|
+
minzoom: 9,
|
|
741
|
+
filter: ["==", ["get", "class"], "village"],
|
|
742
|
+
layout: {
|
|
743
|
+
"icon-allow-overlap": !0,
|
|
744
|
+
"icon-optional": !1,
|
|
745
|
+
"icon-size": 0.2,
|
|
746
|
+
"text-anchor": "bottom",
|
|
747
|
+
"text-field": ["coalesce", ["get", "name_en"], ["get", "name:latin"]],
|
|
748
|
+
"text-font": ["Noto Sans Regular"],
|
|
749
|
+
"text-max-width": 8,
|
|
750
|
+
"text-size": ["interpolate", ["exponential", 1.2], ["zoom"], 7, 10, 11, 12]
|
|
751
|
+
},
|
|
752
|
+
paint: {
|
|
753
|
+
"text-color": "rgba(0, 0, 0, 1)",
|
|
754
|
+
"text-halo-color": "rgba(255, 255, 255, 1)",
|
|
755
|
+
"text-halo-width": 1
|
|
756
|
+
}
|
|
757
|
+
},
|
|
758
|
+
{
|
|
759
|
+
id: "label_town",
|
|
760
|
+
type: "symbol",
|
|
761
|
+
source: "openmaptiles",
|
|
762
|
+
"source-layer": "place",
|
|
763
|
+
minzoom: 6,
|
|
764
|
+
filter: ["==", ["get", "class"], "town"],
|
|
765
|
+
layout: {
|
|
766
|
+
"icon-allow-overlap": !0,
|
|
767
|
+
"icon-optional": !1,
|
|
768
|
+
"icon-size": 0.2,
|
|
769
|
+
"text-anchor": "bottom",
|
|
770
|
+
"text-field": ["coalesce", ["get", "name_en"], ["get", "name:latin"]],
|
|
771
|
+
"text-font": ["Noto Sans Regular"],
|
|
772
|
+
"text-max-width": 8,
|
|
773
|
+
"text-size": ["interpolate", ["exponential", 1.2], ["zoom"], 7, 12, 11, 14]
|
|
774
|
+
},
|
|
775
|
+
paint: {
|
|
776
|
+
"text-color": "rgba(0, 0, 0, 1)",
|
|
777
|
+
"text-halo-color": "rgba(255, 255, 255, 1)",
|
|
778
|
+
"text-halo-width": 1
|
|
779
|
+
}
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
id: "label_state",
|
|
783
|
+
type: "symbol",
|
|
784
|
+
source: "openmaptiles",
|
|
785
|
+
"source-layer": "place",
|
|
786
|
+
minzoom: 5,
|
|
787
|
+
maxzoom: 8,
|
|
788
|
+
filter: ["==", ["get", "class"], "state"],
|
|
789
|
+
layout: {
|
|
790
|
+
"text-field": ["coalesce", ["get", "name_en"], ["get", "name:latin"]],
|
|
791
|
+
"text-font": ["Noto Sans Regular"],
|
|
792
|
+
"text-letter-spacing": 0.2,
|
|
793
|
+
"text-max-width": 9,
|
|
794
|
+
"text-size": ["interpolate", ["linear"], ["zoom"], 5, 10, 8, 14],
|
|
795
|
+
"text-transform": "uppercase"
|
|
796
|
+
},
|
|
797
|
+
paint: {
|
|
798
|
+
"text-color": "rgba(17, 17, 17, 1)",
|
|
799
|
+
"text-halo-color": "rgba(255, 255, 255, 1)",
|
|
800
|
+
"text-halo-width": 1
|
|
801
|
+
}
|
|
802
|
+
},
|
|
803
|
+
{
|
|
804
|
+
id: "label_city",
|
|
805
|
+
type: "symbol",
|
|
806
|
+
source: "openmaptiles",
|
|
807
|
+
"source-layer": "place",
|
|
808
|
+
minzoom: 3,
|
|
809
|
+
filter: ["all", ["==", ["get", "class"], "city"], ["!=", ["get", "capital"], 2]],
|
|
810
|
+
layout: {
|
|
811
|
+
"icon-allow-overlap": !0,
|
|
812
|
+
"icon-optional": !1,
|
|
813
|
+
"icon-size": 0.4,
|
|
814
|
+
"text-anchor": "bottom",
|
|
815
|
+
"text-field": ["coalesce", ["get", "name_en"], ["get", "name:latin"]],
|
|
816
|
+
"text-font": ["Noto Sans Regular"],
|
|
817
|
+
"text-max-width": 8,
|
|
818
|
+
"text-offset": [0, -0.1],
|
|
819
|
+
"text-size": ["interpolate", ["exponential", 1.2], ["zoom"], 4, 11, 7, 13, 11, 18]
|
|
820
|
+
},
|
|
821
|
+
paint: {
|
|
822
|
+
"text-color": "rgba(0, 0, 0, 1)",
|
|
823
|
+
"text-halo-color": "rgba(255, 255, 255, 1)",
|
|
824
|
+
"text-halo-width": 1
|
|
825
|
+
}
|
|
826
|
+
},
|
|
827
|
+
{
|
|
828
|
+
id: "label_city_capital",
|
|
829
|
+
type: "symbol",
|
|
830
|
+
source: "openmaptiles",
|
|
831
|
+
"source-layer": "place",
|
|
832
|
+
minzoom: 3,
|
|
833
|
+
filter: ["all", ["==", ["get", "class"], "city"], ["==", ["get", "capital"], 2]],
|
|
834
|
+
layout: {
|
|
835
|
+
"icon-allow-overlap": !0,
|
|
836
|
+
"icon-optional": !1,
|
|
837
|
+
"icon-size": 0.5,
|
|
838
|
+
"text-anchor": "bottom",
|
|
839
|
+
"text-field": ["coalesce", ["get", "name_en"], ["get", "name:latin"]],
|
|
840
|
+
"text-font": ["Noto Sans Bold"],
|
|
841
|
+
"text-max-width": 8,
|
|
842
|
+
"text-offset": [0, -0.2],
|
|
843
|
+
"text-size": ["interpolate", ["exponential", 1.2], ["zoom"], 4, 12, 7, 14, 11, 20]
|
|
844
|
+
},
|
|
845
|
+
paint: {
|
|
846
|
+
"text-color": "rgba(0, 0, 0, 1)",
|
|
847
|
+
"text-halo-color": "rgba(255, 255, 255, 1)",
|
|
848
|
+
"text-halo-width": 1
|
|
849
|
+
}
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
id: "label_country_3",
|
|
853
|
+
type: "symbol",
|
|
854
|
+
source: "openmaptiles",
|
|
855
|
+
"source-layer": "place",
|
|
856
|
+
minzoom: 2,
|
|
857
|
+
maxzoom: 9,
|
|
858
|
+
filter: ["all", ["==", ["get", "class"], "country"], [">=", ["get", "rank"], 3]],
|
|
859
|
+
layout: {
|
|
860
|
+
"text-field": ["coalesce", ["get", "name_en"], ["get", "name:latin"]],
|
|
861
|
+
"text-font": ["Noto Sans Bold"],
|
|
862
|
+
"text-max-width": 6.25,
|
|
863
|
+
"text-size": ["interpolate", ["linear"], ["zoom"], 3, 9, 7, 17]
|
|
864
|
+
},
|
|
865
|
+
paint: {
|
|
866
|
+
"text-color": "rgba(0, 0, 0, 1)",
|
|
867
|
+
"text-halo-color": "rgba(255, 255, 255, 1)",
|
|
868
|
+
"text-halo-width": 1
|
|
869
|
+
}
|
|
870
|
+
},
|
|
871
|
+
{
|
|
872
|
+
id: "label_country_2",
|
|
873
|
+
type: "symbol",
|
|
874
|
+
source: "openmaptiles",
|
|
875
|
+
"source-layer": "place",
|
|
876
|
+
maxzoom: 9,
|
|
877
|
+
filter: ["all", ["==", ["get", "class"], "country"], ["==", ["get", "rank"], 2]],
|
|
878
|
+
layout: {
|
|
879
|
+
"text-field": ["coalesce", ["get", "name_en"], ["get", "name:latin"]],
|
|
880
|
+
"text-font": ["Noto Sans Bold"],
|
|
881
|
+
"text-max-width": 6.25,
|
|
882
|
+
"text-size": ["interpolate", ["linear"], ["zoom"], 2, 9, 5, 17]
|
|
883
|
+
},
|
|
884
|
+
paint: {
|
|
885
|
+
"text-color": "rgba(0, 0, 0, 1)",
|
|
886
|
+
"text-halo-color": "rgba(255, 255, 255, 1)",
|
|
887
|
+
"text-halo-width": 1
|
|
888
|
+
}
|
|
889
|
+
},
|
|
890
|
+
{
|
|
891
|
+
id: "label_country_1",
|
|
892
|
+
type: "symbol",
|
|
893
|
+
source: "openmaptiles",
|
|
894
|
+
"source-layer": "place",
|
|
895
|
+
maxzoom: 9,
|
|
896
|
+
filter: ["all", ["==", ["get", "class"], "country"], ["==", ["get", "rank"], 1]],
|
|
897
|
+
layout: {
|
|
898
|
+
"text-field": ["coalesce", ["get", "name_en"], ["get", "name:latin"]],
|
|
899
|
+
"text-font": ["Noto Sans Bold"],
|
|
900
|
+
"text-max-width": 6.25,
|
|
901
|
+
"text-size": ["interpolate", ["linear"], ["zoom"], 1, 9, 4, 17]
|
|
902
|
+
},
|
|
903
|
+
paint: {
|
|
904
|
+
"text-color": "rgba(0, 0, 0, 1)",
|
|
905
|
+
"text-halo-color": "rgba(255, 255, 255, 1)",
|
|
906
|
+
"text-halo-width": 1
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
]
|
|
910
|
+
}, y = {
|
|
911
|
+
version: 8,
|
|
912
|
+
sources: {
|
|
913
|
+
openmaptiles: {
|
|
914
|
+
type: "vector",
|
|
915
|
+
url: "https://tiles.openfreemap.org/planet"
|
|
916
|
+
}
|
|
917
|
+
},
|
|
918
|
+
glyphs: "https://tiles.openfreemap.org/fonts/{fontstack}/{range}.pbf",
|
|
919
|
+
layers: [
|
|
920
|
+
{
|
|
921
|
+
id: "background",
|
|
922
|
+
type: "background",
|
|
923
|
+
paint: { "background-color": "rgba(220, 220, 220, 1)" }
|
|
924
|
+
},
|
|
925
|
+
{
|
|
926
|
+
id: "park",
|
|
927
|
+
type: "fill",
|
|
928
|
+
source: "openmaptiles",
|
|
929
|
+
"source-layer": "park",
|
|
930
|
+
filter: ["in", ["geometry-type"], ["literal", ["Polygon", "MultiPolygon"]]],
|
|
931
|
+
paint: { "fill-color": "rgba(228, 228, 228, 1)" }
|
|
932
|
+
},
|
|
933
|
+
{
|
|
934
|
+
id: "water",
|
|
935
|
+
type: "fill",
|
|
936
|
+
source: "openmaptiles",
|
|
937
|
+
"source-layer": "water",
|
|
938
|
+
filter: ["all", ["in", ["geometry-type"], ["literal", ["Polygon", "MultiPolygon"]]], ["!=", ["get", "brunnel"], "tunnel"]],
|
|
939
|
+
paint: { "fill-antialias": !0, "fill-color": "rgba(156, 156, 156, 1)" }
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
id: "landcover_ice_shelf",
|
|
943
|
+
type: "fill",
|
|
944
|
+
source: "openmaptiles",
|
|
945
|
+
"source-layer": "landcover",
|
|
946
|
+
maxzoom: 8,
|
|
947
|
+
filter: ["all", ["in", ["geometry-type"], ["literal", ["Polygon", "MultiPolygon"]]], ["==", ["get", "subclass"], "ice_shelf"]],
|
|
948
|
+
paint: { "fill-color": "rgba(228, 228, 228, 1)", "fill-opacity": 0.7 }
|
|
949
|
+
},
|
|
950
|
+
{
|
|
951
|
+
id: "landcover_glacier",
|
|
952
|
+
type: "fill",
|
|
953
|
+
source: "openmaptiles",
|
|
954
|
+
"source-layer": "landcover",
|
|
955
|
+
maxzoom: 8,
|
|
956
|
+
filter: ["all", ["in", ["geometry-type"], ["literal", ["Polygon", "MultiPolygon"]]], ["==", ["get", "subclass"], "glacier"]],
|
|
957
|
+
paint: {
|
|
958
|
+
"fill-color": "rgba(253, 253, 253, 1)",
|
|
959
|
+
"fill-opacity": ["interpolate", ["linear"], ["zoom"], 0, 1, 8, 0.5]
|
|
960
|
+
}
|
|
961
|
+
},
|
|
962
|
+
{
|
|
963
|
+
id: "landuse_residential",
|
|
964
|
+
type: "fill",
|
|
965
|
+
source: "openmaptiles",
|
|
966
|
+
"source-layer": "landuse",
|
|
967
|
+
maxzoom: 16,
|
|
968
|
+
filter: ["all", ["in", ["geometry-type"], ["literal", ["Polygon", "MultiPolygon"]]], ["==", ["get", "class"], "residential"]],
|
|
969
|
+
paint: {
|
|
970
|
+
"fill-color": "rgba(204, 204, 204, 1)",
|
|
971
|
+
"fill-opacity": ["interpolate", ["exponential", 0.6], ["zoom"], 8, 0.8, 9, 0.6]
|
|
972
|
+
}
|
|
973
|
+
},
|
|
974
|
+
{
|
|
975
|
+
id: "landcover_wood",
|
|
976
|
+
type: "fill",
|
|
977
|
+
source: "openmaptiles",
|
|
978
|
+
"source-layer": "landcover",
|
|
979
|
+
minzoom: 10,
|
|
980
|
+
filter: ["all", ["in", ["geometry-type"], ["literal", ["Polygon", "MultiPolygon"]]], ["==", ["get", "class"], "wood"]],
|
|
981
|
+
paint: {
|
|
982
|
+
"fill-color": "rgba(228, 228, 228, 1)",
|
|
983
|
+
"fill-opacity": ["interpolate", ["linear"], ["zoom"], 8, 0, 12, 1]
|
|
984
|
+
}
|
|
985
|
+
},
|
|
986
|
+
{
|
|
987
|
+
id: "waterway",
|
|
988
|
+
type: "line",
|
|
989
|
+
source: "openmaptiles",
|
|
990
|
+
"source-layer": "waterway",
|
|
991
|
+
filter: ["==", ["geometry-type"], "LineString"],
|
|
992
|
+
paint: { "line-color": "rgba(156, 156, 156, 1)" }
|
|
993
|
+
},
|
|
994
|
+
{
|
|
995
|
+
id: "building",
|
|
996
|
+
type: "fill",
|
|
997
|
+
source: "openmaptiles",
|
|
998
|
+
"source-layer": "building",
|
|
999
|
+
minzoom: 12,
|
|
1000
|
+
paint: {
|
|
1001
|
+
"fill-antialias": !0,
|
|
1002
|
+
"fill-color": "rgba(236, 236, 236, 1)",
|
|
1003
|
+
"fill-outline-color": "rgba(202, 202, 202, 1)"
|
|
1004
|
+
}
|
|
1005
|
+
},
|
|
1006
|
+
{
|
|
1007
|
+
id: "tunnel_motorway_casing",
|
|
1008
|
+
type: "line",
|
|
1009
|
+
source: "openmaptiles",
|
|
1010
|
+
"source-layer": "transportation",
|
|
1011
|
+
minzoom: 6,
|
|
1012
|
+
filter: ["all", ["==", ["geometry-type"], "LineString"], ["all", ["==", ["get", "brunnel"], "tunnel"], ["==", ["get", "class"], "motorway"]]],
|
|
1013
|
+
layout: { "line-cap": "butt", "line-join": "miter" },
|
|
1014
|
+
paint: {
|
|
1015
|
+
"line-color": "rgb(168, 168, 168)",
|
|
1016
|
+
"line-opacity": 1,
|
|
1017
|
+
"line-width": ["interpolate", ["exponential", 1.4], ["zoom"], 5.8, 0, 6, 3, 20, 40]
|
|
1018
|
+
}
|
|
1019
|
+
},
|
|
1020
|
+
{
|
|
1021
|
+
id: "tunnel_motorway_inner",
|
|
1022
|
+
type: "line",
|
|
1023
|
+
source: "openmaptiles",
|
|
1024
|
+
"source-layer": "transportation",
|
|
1025
|
+
minzoom: 6,
|
|
1026
|
+
filter: ["all", ["==", ["geometry-type"], "LineString"], ["all", ["==", ["get", "brunnel"], "tunnel"], ["==", ["get", "class"], "motorway"]]],
|
|
1027
|
+
layout: { "line-cap": "round", "line-join": "round" },
|
|
1028
|
+
paint: {
|
|
1029
|
+
"line-color": "rgb(185, 185, 185)",
|
|
1030
|
+
"line-width": ["interpolate", ["exponential", 1.4], ["zoom"], 4, 2, 6, 1.3, 20, 30]
|
|
1031
|
+
}
|
|
1032
|
+
},
|
|
1033
|
+
{
|
|
1034
|
+
id: "aeroway-taxiway",
|
|
1035
|
+
type: "line",
|
|
1036
|
+
source: "openmaptiles",
|
|
1037
|
+
"source-layer": "aeroway",
|
|
1038
|
+
minzoom: 12,
|
|
1039
|
+
filter: ["match", ["get", "class"], ["taxiway"], !0, !1],
|
|
1040
|
+
layout: { "line-cap": "round", "line-join": "round" },
|
|
1041
|
+
paint: {
|
|
1042
|
+
"line-color": "rgba(185, 185, 185, 1)",
|
|
1043
|
+
"line-opacity": 1,
|
|
1044
|
+
"line-width": ["interpolate", ["exponential", 1.55], ["zoom"], 13, 1.8, 20, 20]
|
|
1045
|
+
}
|
|
1046
|
+
},
|
|
1047
|
+
{
|
|
1048
|
+
id: "aeroway-runway-casing",
|
|
1049
|
+
type: "line",
|
|
1050
|
+
source: "openmaptiles",
|
|
1051
|
+
"source-layer": "aeroway",
|
|
1052
|
+
minzoom: 11,
|
|
1053
|
+
filter: ["match", ["get", "class"], ["runway"], !0, !1],
|
|
1054
|
+
layout: { "line-cap": "round", "line-join": "round" },
|
|
1055
|
+
paint: {
|
|
1056
|
+
"line-color": "rgba(185, 185, 185, 1)",
|
|
1057
|
+
"line-opacity": 1,
|
|
1058
|
+
"line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 11, 6, 17, 55]
|
|
1059
|
+
}
|
|
1060
|
+
},
|
|
1061
|
+
{
|
|
1062
|
+
id: "aeroway-area",
|
|
1063
|
+
type: "fill",
|
|
1064
|
+
source: "openmaptiles",
|
|
1065
|
+
"source-layer": "aeroway",
|
|
1066
|
+
minzoom: 4,
|
|
1067
|
+
filter: [
|
|
1068
|
+
"all",
|
|
1069
|
+
["in", ["geometry-type"], ["literal", ["Polygon", "MultiPolygon"]]],
|
|
1070
|
+
["match", ["get", "class"], ["runway", "taxiway"], !0, !1]
|
|
1071
|
+
],
|
|
1072
|
+
paint: {
|
|
1073
|
+
"fill-color": "rgba(228, 228, 228, 1)",
|
|
1074
|
+
"fill-opacity": ["interpolate", ["linear"], ["zoom"], 13, 0, 14, 1]
|
|
1075
|
+
}
|
|
1076
|
+
},
|
|
1077
|
+
{
|
|
1078
|
+
id: "aeroway-runway",
|
|
1079
|
+
type: "line",
|
|
1080
|
+
source: "openmaptiles",
|
|
1081
|
+
"source-layer": "aeroway",
|
|
1082
|
+
minzoom: 11,
|
|
1083
|
+
filter: ["all", ["match", ["get", "class"], ["runway"], !0, !1], ["==", ["geometry-type"], "LineString"]],
|
|
1084
|
+
layout: { "line-cap": "round", "line-join": "round" },
|
|
1085
|
+
paint: {
|
|
1086
|
+
"line-color": "rgba(168, 168, 168, 1)",
|
|
1087
|
+
"line-opacity": 1,
|
|
1088
|
+
"line-width": ["interpolate", ["exponential", 1.5], ["zoom"], 11, 4, 17, 50]
|
|
1089
|
+
}
|
|
1090
|
+
},
|
|
1091
|
+
{
|
|
1092
|
+
id: "road_area_pier",
|
|
1093
|
+
type: "fill",
|
|
1094
|
+
source: "openmaptiles",
|
|
1095
|
+
"source-layer": "transportation",
|
|
1096
|
+
filter: ["all", ["in", ["geometry-type"], ["literal", ["Polygon", "MultiPolygon"]]], ["==", ["get", "class"], "pier"]],
|
|
1097
|
+
paint: { "fill-antialias": !0, "fill-color": "rgba(150, 150, 150, 1)" }
|
|
1098
|
+
},
|
|
1099
|
+
{
|
|
1100
|
+
id: "road_pier",
|
|
1101
|
+
type: "line",
|
|
1102
|
+
source: "openmaptiles",
|
|
1103
|
+
"source-layer": "transportation",
|
|
1104
|
+
filter: ["all", ["==", ["geometry-type"], "LineString"], ["match", ["get", "class"], ["pier"], !0, !1]],
|
|
1105
|
+
layout: { "line-cap": "round", "line-join": "round" },
|
|
1106
|
+
paint: {
|
|
1107
|
+
"line-color": "rgba(152, 152, 152, 1)",
|
|
1108
|
+
"line-width": ["interpolate", ["exponential", 1.2], ["zoom"], 15, 1, 17, 4]
|
|
1109
|
+
}
|
|
1110
|
+
},
|
|
1111
|
+
{
|
|
1112
|
+
id: "highway_path",
|
|
1113
|
+
type: "line",
|
|
1114
|
+
source: "openmaptiles",
|
|
1115
|
+
"source-layer": "transportation",
|
|
1116
|
+
filter: ["all", ["==", ["geometry-type"], "LineString"], ["==", ["get", "class"], "path"]],
|
|
1117
|
+
layout: { "line-cap": "round", "line-join": "round" },
|
|
1118
|
+
paint: {
|
|
1119
|
+
"line-color": "rgb(188, 188, 188)",
|
|
1120
|
+
"line-opacity": 0.9,
|
|
1121
|
+
"line-width": ["interpolate", ["exponential", 1.2], ["zoom"], 13, 1, 20, 10]
|
|
1122
|
+
}
|
|
1123
|
+
},
|
|
1124
|
+
{
|
|
1125
|
+
id: "highway_minor",
|
|
1126
|
+
type: "line",
|
|
1127
|
+
source: "openmaptiles",
|
|
1128
|
+
"source-layer": "transportation",
|
|
1129
|
+
minzoom: 8,
|
|
1130
|
+
filter: ["all", ["==", ["geometry-type"], "LineString"], ["match", ["get", "class"], ["minor", "service", "track"], !0, !1]],
|
|
1131
|
+
layout: { "line-cap": "round", "line-join": "round" },
|
|
1132
|
+
paint: {
|
|
1133
|
+
"line-color": "rgba(202, 202, 202, 1)",
|
|
1134
|
+
"line-opacity": 0.9,
|
|
1135
|
+
"line-width": ["interpolate", ["exponential", 1.55], ["zoom"], 13, 1.8, 20, 20]
|
|
1136
|
+
}
|
|
1137
|
+
},
|
|
1138
|
+
{
|
|
1139
|
+
id: "highway_major_casing",
|
|
1140
|
+
type: "line",
|
|
1141
|
+
source: "openmaptiles",
|
|
1142
|
+
"source-layer": "transportation",
|
|
1143
|
+
minzoom: 11,
|
|
1144
|
+
filter: ["all", ["==", ["geometry-type"], "LineString"], ["match", ["get", "class"], ["primary", "secondary", "tertiary", "trunk"], !0, !1]],
|
|
1145
|
+
layout: { "line-cap": "butt", "line-join": "miter" },
|
|
1146
|
+
paint: {
|
|
1147
|
+
"line-color": "rgb(185, 185, 185)",
|
|
1148
|
+
"line-dasharray": [12, 0],
|
|
1149
|
+
"line-width": ["interpolate", ["exponential", 1.3], ["zoom"], 10, 3, 20, 23]
|
|
1150
|
+
}
|
|
1151
|
+
},
|
|
1152
|
+
{
|
|
1153
|
+
id: "highway_major_inner",
|
|
1154
|
+
type: "line",
|
|
1155
|
+
source: "openmaptiles",
|
|
1156
|
+
"source-layer": "transportation",
|
|
1157
|
+
minzoom: 11,
|
|
1158
|
+
filter: ["all", ["==", ["geometry-type"], "LineString"], ["match", ["get", "class"], ["primary", "secondary", "tertiary", "trunk"], !0, !1]],
|
|
1159
|
+
layout: { "line-cap": "round", "line-join": "round" },
|
|
1160
|
+
paint: {
|
|
1161
|
+
"line-color": "rgba(202, 202, 202, 1)",
|
|
1162
|
+
"line-width": ["interpolate", ["exponential", 1.3], ["zoom"], 10, 2, 20, 20]
|
|
1163
|
+
}
|
|
1164
|
+
},
|
|
1165
|
+
{
|
|
1166
|
+
id: "highway_major_subtle",
|
|
1167
|
+
type: "line",
|
|
1168
|
+
source: "openmaptiles",
|
|
1169
|
+
"source-layer": "transportation",
|
|
1170
|
+
maxzoom: 11,
|
|
1171
|
+
filter: ["all", ["==", ["geometry-type"], "LineString"], ["match", ["get", "class"], ["primary", "secondary", "tertiary", "trunk"], !0, !1]],
|
|
1172
|
+
layout: { "line-cap": "round", "line-join": "round" },
|
|
1173
|
+
paint: { "line-color": "rgba(185, 185, 185, 1)", "line-width": 2 }
|
|
1174
|
+
},
|
|
1175
|
+
{
|
|
1176
|
+
id: "highway_motorway_casing",
|
|
1177
|
+
type: "line",
|
|
1178
|
+
source: "openmaptiles",
|
|
1179
|
+
"source-layer": "transportation",
|
|
1180
|
+
minzoom: 6,
|
|
1181
|
+
filter: [
|
|
1182
|
+
"all",
|
|
1183
|
+
["==", ["geometry-type"], "LineString"],
|
|
1184
|
+
["all", ["match", ["get", "brunnel"], ["bridge", "tunnel"], !1, !0], ["==", ["get", "class"], "motorway"]]
|
|
1185
|
+
],
|
|
1186
|
+
layout: { "line-cap": "butt", "line-join": "miter" },
|
|
1187
|
+
paint: {
|
|
1188
|
+
"line-color": "rgb(168, 168, 168)",
|
|
1189
|
+
"line-dasharray": [2, 0],
|
|
1190
|
+
"line-opacity": 1,
|
|
1191
|
+
"line-width": ["interpolate", ["exponential", 1.4], ["zoom"], 5.8, 0, 6, 3, 20, 40]
|
|
1192
|
+
}
|
|
1193
|
+
},
|
|
1194
|
+
{
|
|
1195
|
+
id: "highway_motorway_inner",
|
|
1196
|
+
type: "line",
|
|
1197
|
+
source: "openmaptiles",
|
|
1198
|
+
"source-layer": "transportation",
|
|
1199
|
+
minzoom: 6,
|
|
1200
|
+
filter: [
|
|
1201
|
+
"all",
|
|
1202
|
+
["==", ["geometry-type"], "LineString"],
|
|
1203
|
+
["all", ["match", ["get", "brunnel"], ["bridge", "tunnel"], !1, !0], ["==", ["get", "class"], "motorway"]]
|
|
1204
|
+
],
|
|
1205
|
+
layout: { "line-cap": "round", "line-join": "round" },
|
|
1206
|
+
paint: {
|
|
1207
|
+
"line-color": ["interpolate", ["linear"], ["zoom"], 5.8, "rgba(202, 202, 202, 1)", 6, "rgba(185, 185, 185, 1)"],
|
|
1208
|
+
"line-width": ["interpolate", ["exponential", 1.4], ["zoom"], 4, 2, 6, 1.3, 20, 30]
|
|
1209
|
+
}
|
|
1210
|
+
},
|
|
1211
|
+
{
|
|
1212
|
+
id: "highway_motorway_subtle",
|
|
1213
|
+
type: "line",
|
|
1214
|
+
source: "openmaptiles",
|
|
1215
|
+
"source-layer": "transportation",
|
|
1216
|
+
maxzoom: 6,
|
|
1217
|
+
filter: ["all", ["==", ["geometry-type"], "LineString"], ["==", ["get", "class"], "motorway"]],
|
|
1218
|
+
layout: { "line-cap": "round", "line-join": "round" },
|
|
1219
|
+
paint: {
|
|
1220
|
+
"line-color": "rgba(202, 202, 202, 1)",
|
|
1221
|
+
"line-width": ["interpolate", ["exponential", 1.4], ["zoom"], 4, 2, 6, 1.3]
|
|
1222
|
+
}
|
|
1223
|
+
},
|
|
1224
|
+
{
|
|
1225
|
+
id: "railway_transit",
|
|
1226
|
+
type: "line",
|
|
1227
|
+
source: "openmaptiles",
|
|
1228
|
+
"source-layer": "transportation",
|
|
1229
|
+
minzoom: 16,
|
|
1230
|
+
filter: [
|
|
1231
|
+
"all",
|
|
1232
|
+
["==", ["geometry-type"], "LineString"],
|
|
1233
|
+
["all", ["==", ["get", "class"], "transit"], ["match", ["get", "brunnel"], ["tunnel"], !1, !0]]
|
|
1234
|
+
],
|
|
1235
|
+
layout: { "line-join": "round" },
|
|
1236
|
+
paint: { "line-color": "rgba(185, 185, 185, 1)", "line-width": 3 }
|
|
1237
|
+
},
|
|
1238
|
+
{
|
|
1239
|
+
id: "railway_transit_dashline",
|
|
1240
|
+
type: "line",
|
|
1241
|
+
source: "openmaptiles",
|
|
1242
|
+
"source-layer": "transportation",
|
|
1243
|
+
minzoom: 16,
|
|
1244
|
+
filter: [
|
|
1245
|
+
"all",
|
|
1246
|
+
["==", ["geometry-type"], "LineString"],
|
|
1247
|
+
["all", ["==", ["get", "class"], "transit"], ["match", ["get", "brunnel"], ["tunnel"], !1, !0]]
|
|
1248
|
+
],
|
|
1249
|
+
layout: { "line-join": "round" },
|
|
1250
|
+
paint: {
|
|
1251
|
+
"line-color": "rgba(168, 168, 168, 1)",
|
|
1252
|
+
"line-dasharray": [3, 3],
|
|
1253
|
+
"line-width": 2
|
|
1254
|
+
}
|
|
1255
|
+
},
|
|
1256
|
+
{
|
|
1257
|
+
id: "railway_service",
|
|
1258
|
+
type: "line",
|
|
1259
|
+
source: "openmaptiles",
|
|
1260
|
+
"source-layer": "transportation",
|
|
1261
|
+
minzoom: 16,
|
|
1262
|
+
filter: ["all", ["==", ["geometry-type"], "LineString"], ["all", ["==", ["get", "class"], "rail"], ["has", "service"]]],
|
|
1263
|
+
layout: { "line-join": "round" },
|
|
1264
|
+
paint: { "line-color": "rgba(202, 202, 202, 1)", "line-width": 3 }
|
|
1265
|
+
},
|
|
1266
|
+
{
|
|
1267
|
+
id: "railway_service_dashline",
|
|
1268
|
+
type: "line",
|
|
1269
|
+
source: "openmaptiles",
|
|
1270
|
+
"source-layer": "transportation",
|
|
1271
|
+
minzoom: 16,
|
|
1272
|
+
filter: ["all", ["==", ["geometry-type"], "LineString"], ["==", ["get", "class"], "rail"], ["has", "service"]],
|
|
1273
|
+
layout: { "line-join": "round" },
|
|
1274
|
+
paint: {
|
|
1275
|
+
"line-color": "rgba(185, 185, 185, 1)",
|
|
1276
|
+
"line-dasharray": [3, 3],
|
|
1277
|
+
"line-width": 2
|
|
1278
|
+
}
|
|
1279
|
+
},
|
|
1280
|
+
{
|
|
1281
|
+
id: "railway",
|
|
1282
|
+
type: "line",
|
|
1283
|
+
source: "openmaptiles",
|
|
1284
|
+
"source-layer": "transportation",
|
|
1285
|
+
minzoom: 13,
|
|
1286
|
+
filter: ["all", ["==", ["geometry-type"], "LineString"], ["all", ["!", ["has", "service"]], ["==", ["get", "class"], "rail"]]],
|
|
1287
|
+
layout: { "line-join": "round" },
|
|
1288
|
+
paint: {
|
|
1289
|
+
"line-color": "rgba(185, 185, 185, 1)",
|
|
1290
|
+
"line-width": ["interpolate", ["exponential", 1.3], ["zoom"], 16, 3, 20, 7]
|
|
1291
|
+
}
|
|
1292
|
+
},
|
|
1293
|
+
{
|
|
1294
|
+
id: "railway_dashline",
|
|
1295
|
+
type: "line",
|
|
1296
|
+
source: "openmaptiles",
|
|
1297
|
+
"source-layer": "transportation",
|
|
1298
|
+
minzoom: 13,
|
|
1299
|
+
filter: ["all", ["==", ["geometry-type"], "LineString"], ["all", ["!", ["has", "service"]], ["==", ["get", "class"], "rail"]]],
|
|
1300
|
+
layout: { "line-join": "round" },
|
|
1301
|
+
paint: {
|
|
1302
|
+
"line-color": "rgba(168, 168, 168, 1)",
|
|
1303
|
+
"line-dasharray": [3, 3],
|
|
1304
|
+
"line-width": ["interpolate", ["exponential", 1.3], ["zoom"], 16, 2, 20, 6]
|
|
1305
|
+
}
|
|
1306
|
+
},
|
|
1307
|
+
{
|
|
1308
|
+
id: "highway_motorway_bridge_casing",
|
|
1309
|
+
type: "line",
|
|
1310
|
+
source: "openmaptiles",
|
|
1311
|
+
"source-layer": "transportation",
|
|
1312
|
+
minzoom: 6,
|
|
1313
|
+
filter: ["all", ["==", ["geometry-type"], "LineString"], ["all", ["==", ["get", "brunnel"], "bridge"], ["==", ["get", "class"], "motorway"]]],
|
|
1314
|
+
layout: { "line-cap": "butt", "line-join": "miter" },
|
|
1315
|
+
paint: {
|
|
1316
|
+
"line-color": "rgb(168, 168, 168)",
|
|
1317
|
+
"line-dasharray": [2, 0],
|
|
1318
|
+
"line-opacity": 1,
|
|
1319
|
+
"line-width": ["interpolate", ["exponential", 1.4], ["zoom"], 5.8, 0, 6, 5, 20, 45]
|
|
1320
|
+
}
|
|
1321
|
+
},
|
|
1322
|
+
{
|
|
1323
|
+
id: "highway_motorway_bridge_inner",
|
|
1324
|
+
type: "line",
|
|
1325
|
+
source: "openmaptiles",
|
|
1326
|
+
"source-layer": "transportation",
|
|
1327
|
+
minzoom: 6,
|
|
1328
|
+
filter: ["all", ["==", ["geometry-type"], "LineString"], ["all", ["==", ["get", "brunnel"], "bridge"], ["==", ["get", "class"], "motorway"]]],
|
|
1329
|
+
layout: { "line-cap": "round", "line-join": "round" },
|
|
1330
|
+
paint: {
|
|
1331
|
+
"line-color": ["interpolate", ["linear"], ["zoom"], 5.8, "rgba(202, 202, 202, 1)", 6, "rgba(185, 185, 185, 1)"],
|
|
1332
|
+
"line-width": ["interpolate", ["exponential", 1.4], ["zoom"], 4, 2, 6, 1.3, 20, 30]
|
|
1333
|
+
}
|
|
1334
|
+
},
|
|
1335
|
+
{
|
|
1336
|
+
id: "boundary_3",
|
|
1337
|
+
type: "line",
|
|
1338
|
+
source: "openmaptiles",
|
|
1339
|
+
"source-layer": "boundary",
|
|
1340
|
+
minzoom: 8,
|
|
1341
|
+
filter: [
|
|
1342
|
+
"all",
|
|
1343
|
+
[">=", ["get", "admin_level"], 3],
|
|
1344
|
+
["<=", ["get", "admin_level"], 6],
|
|
1345
|
+
["!=", ["get", "maritime"], 1],
|
|
1346
|
+
["!=", ["get", "disputed"], 1],
|
|
1347
|
+
["!", ["has", "claimed_by"]]
|
|
1348
|
+
],
|
|
1349
|
+
paint: {
|
|
1350
|
+
"line-color": "rgba(168, 168, 168, 1)",
|
|
1351
|
+
"line-dasharray": [1, 1],
|
|
1352
|
+
"line-width": ["interpolate", ["linear"], ["zoom"], 7, 1, 11, 2]
|
|
1353
|
+
}
|
|
1354
|
+
},
|
|
1355
|
+
{
|
|
1356
|
+
id: "boundary_2",
|
|
1357
|
+
type: "line",
|
|
1358
|
+
source: "openmaptiles",
|
|
1359
|
+
"source-layer": "boundary",
|
|
1360
|
+
filter: ["all", ["==", ["get", "admin_level"], 2], ["!=", ["get", "maritime"], 1], ["!=", ["get", "disputed"], 1], ["!", ["has", "claimed_by"]]],
|
|
1361
|
+
layout: { "line-cap": "round", "line-join": "round" },
|
|
1362
|
+
paint: {
|
|
1363
|
+
"line-color": "rgba(151, 151, 151, 1)",
|
|
1364
|
+
"line-opacity": ["interpolate", ["linear"], ["zoom"], 0, 0.4, 4, 1],
|
|
1365
|
+
"line-width": ["interpolate", ["linear"], ["zoom"], 3, 1, 5, 1.2, 12, 3]
|
|
1366
|
+
}
|
|
1367
|
+
},
|
|
1368
|
+
{
|
|
1369
|
+
id: "boundary_disputed",
|
|
1370
|
+
type: "line",
|
|
1371
|
+
source: "openmaptiles",
|
|
1372
|
+
"source-layer": "boundary",
|
|
1373
|
+
filter: ["all", ["!=", ["get", "maritime"], 1], ["==", ["get", "disputed"], 1]],
|
|
1374
|
+
paint: {
|
|
1375
|
+
"line-color": "rgba(151, 151, 151, 1)",
|
|
1376
|
+
"line-dasharray": [1, 2],
|
|
1377
|
+
"line-width": ["interpolate", ["linear"], ["zoom"], 3, 1, 5, 1.2, 12, 3]
|
|
1378
|
+
}
|
|
1379
|
+
},
|
|
1380
|
+
{
|
|
1381
|
+
id: "waterway_line_label",
|
|
1382
|
+
type: "symbol",
|
|
1383
|
+
source: "openmaptiles",
|
|
1384
|
+
"source-layer": "waterway",
|
|
1385
|
+
minzoom: 10,
|
|
1386
|
+
filter: ["==", ["geometry-type"], "LineString"],
|
|
1387
|
+
layout: {
|
|
1388
|
+
"symbol-placement": "line",
|
|
1389
|
+
"symbol-spacing": 350,
|
|
1390
|
+
"text-field": ["coalesce", ["get", "name_en"], ["get", "name:latin"]],
|
|
1391
|
+
"text-font": ["Noto Sans Regular"],
|
|
1392
|
+
"text-letter-spacing": 0.2,
|
|
1393
|
+
"text-max-width": 5,
|
|
1394
|
+
"text-size": 14
|
|
1395
|
+
},
|
|
1396
|
+
paint: {
|
|
1397
|
+
"text-color": "rgba(34, 34, 34, 1)",
|
|
1398
|
+
"text-halo-color": "rgba(255, 255, 255, 1)",
|
|
1399
|
+
"text-halo-width": 1.5
|
|
1400
|
+
}
|
|
1401
|
+
},
|
|
1402
|
+
{
|
|
1403
|
+
id: "water_name_point_label",
|
|
1404
|
+
type: "symbol",
|
|
1405
|
+
source: "openmaptiles",
|
|
1406
|
+
"source-layer": "water_name",
|
|
1407
|
+
minzoom: 0,
|
|
1408
|
+
filter: ["==", ["geometry-type"], "Point"],
|
|
1409
|
+
layout: { visibility: "none" }
|
|
1410
|
+
},
|
|
1411
|
+
{
|
|
1412
|
+
id: "water_name_line_label",
|
|
1413
|
+
type: "symbol",
|
|
1414
|
+
source: "openmaptiles",
|
|
1415
|
+
"source-layer": "water_name",
|
|
1416
|
+
filter: ["==", ["geometry-type"], "LineString"],
|
|
1417
|
+
layout: { visibility: "none" }
|
|
1418
|
+
},
|
|
1419
|
+
{
|
|
1420
|
+
id: "highway-name-path",
|
|
1421
|
+
type: "symbol",
|
|
1422
|
+
source: "openmaptiles",
|
|
1423
|
+
"source-layer": "transportation_name",
|
|
1424
|
+
minzoom: 15.5,
|
|
1425
|
+
filter: ["==", ["get", "class"], "path"],
|
|
1426
|
+
layout: {
|
|
1427
|
+
"symbol-placement": "line",
|
|
1428
|
+
"text-field": ["get", "name:latin"],
|
|
1429
|
+
"text-font": ["Noto Sans Regular"],
|
|
1430
|
+
"text-rotation-alignment": "map",
|
|
1431
|
+
"text-size": ["interpolate", ["linear"], ["zoom"], 13, 12, 14, 13]
|
|
1432
|
+
},
|
|
1433
|
+
paint: {
|
|
1434
|
+
"text-color": "rgba(158, 158, 158, 1)",
|
|
1435
|
+
"text-halo-color": "rgba(244, 244, 244, 1)",
|
|
1436
|
+
"text-halo-width": 0.5
|
|
1437
|
+
}
|
|
1438
|
+
},
|
|
1439
|
+
{
|
|
1440
|
+
id: "highway-name-minor",
|
|
1441
|
+
type: "symbol",
|
|
1442
|
+
source: "openmaptiles",
|
|
1443
|
+
"source-layer": "transportation_name",
|
|
1444
|
+
minzoom: 15,
|
|
1445
|
+
filter: ["all", ["==", ["geometry-type"], "LineString"], ["match", ["get", "class"], ["minor", "service", "track"], !0, !1]],
|
|
1446
|
+
layout: {
|
|
1447
|
+
"symbol-placement": "line",
|
|
1448
|
+
"text-field": ["get", "name:latin"],
|
|
1449
|
+
"text-font": ["Noto Sans Regular"],
|
|
1450
|
+
"text-rotation-alignment": "map",
|
|
1451
|
+
"text-size": ["interpolate", ["linear"], ["zoom"], 13, 12, 14, 13]
|
|
1452
|
+
},
|
|
1453
|
+
paint: {
|
|
1454
|
+
"text-color": "rgba(17, 17, 17, 1)",
|
|
1455
|
+
"text-halo-width": 1,
|
|
1456
|
+
"text-halo-color": "rgba(255, 255, 255, 1)"
|
|
1457
|
+
}
|
|
1458
|
+
},
|
|
1459
|
+
{
|
|
1460
|
+
id: "highway-name-major",
|
|
1461
|
+
type: "symbol",
|
|
1462
|
+
source: "openmaptiles",
|
|
1463
|
+
"source-layer": "transportation_name",
|
|
1464
|
+
minzoom: 12.2,
|
|
1465
|
+
filter: ["match", ["get", "class"], ["primary", "secondary", "tertiary", "trunk"], !0, !1],
|
|
1466
|
+
layout: {
|
|
1467
|
+
"symbol-placement": "line",
|
|
1468
|
+
"text-field": ["get", "name:latin"],
|
|
1469
|
+
"text-font": ["Noto Sans Regular"],
|
|
1470
|
+
"text-rotation-alignment": "map",
|
|
1471
|
+
"text-size": ["interpolate", ["linear"], ["zoom"], 13, 12, 14, 13]
|
|
1472
|
+
},
|
|
1473
|
+
paint: {
|
|
1474
|
+
"text-color": "rgba(34, 34, 34, 1)",
|
|
1475
|
+
"text-halo-width": 1,
|
|
1476
|
+
"text-halo-color": "rgba(255, 255, 255, 1)"
|
|
1477
|
+
}
|
|
1478
|
+
},
|
|
1479
|
+
{
|
|
1480
|
+
id: "highway-shield-non-us",
|
|
1481
|
+
type: "symbol",
|
|
1482
|
+
source: "openmaptiles",
|
|
1483
|
+
"source-layer": "transportation_name",
|
|
1484
|
+
minzoom: 11,
|
|
1485
|
+
filter: [
|
|
1486
|
+
"all",
|
|
1487
|
+
["<=", ["get", "ref_length"], 6],
|
|
1488
|
+
["==", ["geometry-type"], "LineString"],
|
|
1489
|
+
["match", ["get", "network"], ["us-highway", "us-interstate", "us-state"], !1, !0]
|
|
1490
|
+
],
|
|
1491
|
+
layout: {
|
|
1492
|
+
"icon-rotation-alignment": "viewport",
|
|
1493
|
+
"icon-size": 1,
|
|
1494
|
+
"symbol-placement": ["step", ["zoom"], "point", 11, "line"],
|
|
1495
|
+
"symbol-spacing": 200,
|
|
1496
|
+
"text-field": ["to-string", ["get", "ref"]],
|
|
1497
|
+
"text-font": ["Noto Sans Regular"],
|
|
1498
|
+
"text-rotation-alignment": "viewport",
|
|
1499
|
+
"text-size": 10
|
|
1500
|
+
},
|
|
1501
|
+
paint: {
|
|
1502
|
+
"text-halo-color": "rgba(0, 0, 0, 1)",
|
|
1503
|
+
"text-color": "rgba(0, 0, 0, 1)"
|
|
1504
|
+
}
|
|
1505
|
+
},
|
|
1506
|
+
{
|
|
1507
|
+
id: "highway-shield-us-interstate",
|
|
1508
|
+
type: "symbol",
|
|
1509
|
+
source: "openmaptiles",
|
|
1510
|
+
"source-layer": "transportation_name",
|
|
1511
|
+
minzoom: 11,
|
|
1512
|
+
filter: [
|
|
1513
|
+
"all",
|
|
1514
|
+
["<=", ["get", "ref_length"], 6],
|
|
1515
|
+
["==", ["geometry-type"], "LineString"],
|
|
1516
|
+
["match", ["get", "network"], ["us-interstate"], !0, !1]
|
|
1517
|
+
],
|
|
1518
|
+
layout: {
|
|
1519
|
+
"icon-rotation-alignment": "viewport",
|
|
1520
|
+
"icon-size": 1,
|
|
1521
|
+
"symbol-placement": ["step", ["zoom"], "point", 7, "line", 8, "line"],
|
|
1522
|
+
"symbol-spacing": 200,
|
|
1523
|
+
"text-field": ["to-string", ["get", "ref"]],
|
|
1524
|
+
"text-font": ["Noto Sans Regular"],
|
|
1525
|
+
"text-rotation-alignment": "viewport",
|
|
1526
|
+
"text-size": 10
|
|
1527
|
+
}
|
|
1528
|
+
},
|
|
1529
|
+
{
|
|
1530
|
+
id: "road_shield_us",
|
|
1531
|
+
type: "symbol",
|
|
1532
|
+
source: "openmaptiles",
|
|
1533
|
+
"source-layer": "transportation_name",
|
|
1534
|
+
minzoom: 12,
|
|
1535
|
+
filter: [
|
|
1536
|
+
"all",
|
|
1537
|
+
["<=", ["get", "ref_length"], 6],
|
|
1538
|
+
["==", ["geometry-type"], "LineString"],
|
|
1539
|
+
["match", ["get", "network"], ["us-highway", "us-state"], !0, !1]
|
|
1540
|
+
],
|
|
1541
|
+
layout: {
|
|
1542
|
+
"icon-rotation-alignment": "viewport",
|
|
1543
|
+
"icon-size": 1,
|
|
1544
|
+
"symbol-placement": ["step", ["zoom"], "point", 11, "line"],
|
|
1545
|
+
"symbol-spacing": 200,
|
|
1546
|
+
"text-field": ["to-string", ["get", "ref"]],
|
|
1547
|
+
"text-font": ["Noto Sans Regular"],
|
|
1548
|
+
"text-rotation-alignment": "viewport",
|
|
1549
|
+
"text-size": 10
|
|
1550
|
+
}
|
|
1551
|
+
},
|
|
1552
|
+
{
|
|
1553
|
+
id: "airport",
|
|
1554
|
+
type: "symbol",
|
|
1555
|
+
source: "openmaptiles",
|
|
1556
|
+
"source-layer": "aerodrome_label",
|
|
1557
|
+
minzoom: 11,
|
|
1558
|
+
filter: ["all", ["has", "iata"]],
|
|
1559
|
+
layout: {
|
|
1560
|
+
"icon-size": 1,
|
|
1561
|
+
"text-anchor": "top",
|
|
1562
|
+
"text-field": ["coalesce", ["get", "name_en"], ["get", "name:latin"]],
|
|
1563
|
+
"text-font": ["Noto Sans Regular"],
|
|
1564
|
+
"text-max-width": 9,
|
|
1565
|
+
"text-offset": [0, 0.6],
|
|
1566
|
+
"text-optional": !0,
|
|
1567
|
+
"text-padding": 2,
|
|
1568
|
+
"text-size": 12
|
|
1569
|
+
},
|
|
1570
|
+
paint: {
|
|
1571
|
+
"text-color": "rgba(51, 51, 51, 1)",
|
|
1572
|
+
"text-halo-color": "rgba(255, 255, 255, 1)",
|
|
1573
|
+
"text-halo-width": 1
|
|
1574
|
+
}
|
|
1575
|
+
},
|
|
1576
|
+
{
|
|
1577
|
+
id: "label_other",
|
|
1578
|
+
type: "symbol",
|
|
1579
|
+
source: "openmaptiles",
|
|
1580
|
+
"source-layer": "place",
|
|
1581
|
+
minzoom: 8,
|
|
1582
|
+
filter: ["match", ["get", "class"], ["city", "continent", "country", "state", "town", "village"], !1, !0],
|
|
1583
|
+
layout: {
|
|
1584
|
+
"text-field": ["get", "name:latin"],
|
|
1585
|
+
"text-font": ["Noto Sans Regular"],
|
|
1586
|
+
"text-letter-spacing": 0.1,
|
|
1587
|
+
"text-max-width": 9,
|
|
1588
|
+
"text-size": ["interpolate", ["linear"], ["zoom"], 8, 9, 12, 10],
|
|
1589
|
+
"text-transform": "uppercase"
|
|
1590
|
+
},
|
|
1591
|
+
paint: {
|
|
1592
|
+
"text-color": "rgba(17, 17, 17, 1)",
|
|
1593
|
+
"text-halo-color": "rgba(255, 255, 255, 1)",
|
|
1594
|
+
"text-halo-width": 1
|
|
1595
|
+
}
|
|
1596
|
+
},
|
|
1597
|
+
{
|
|
1598
|
+
id: "label_village",
|
|
1599
|
+
type: "symbol",
|
|
1600
|
+
source: "openmaptiles",
|
|
1601
|
+
"source-layer": "place",
|
|
1602
|
+
minzoom: 9,
|
|
1603
|
+
filter: ["==", ["get", "class"], "village"],
|
|
1604
|
+
layout: {
|
|
1605
|
+
"icon-allow-overlap": !0,
|
|
1606
|
+
"icon-optional": !1,
|
|
1607
|
+
"icon-size": 0.2,
|
|
1608
|
+
"text-anchor": "bottom",
|
|
1609
|
+
"text-field": ["coalesce", ["get", "name_en"], ["get", "name:latin"]],
|
|
1610
|
+
"text-font": ["Noto Sans Regular"],
|
|
1611
|
+
"text-max-width": 8,
|
|
1612
|
+
"text-size": ["interpolate", ["exponential", 1.2], ["zoom"], 7, 10, 11, 12]
|
|
1613
|
+
},
|
|
1614
|
+
paint: {
|
|
1615
|
+
"text-color": "rgba(0, 0, 0, 1)",
|
|
1616
|
+
"text-halo-color": "rgba(255, 255, 255, 1)",
|
|
1617
|
+
"text-halo-width": 1
|
|
1618
|
+
}
|
|
1619
|
+
},
|
|
1620
|
+
{
|
|
1621
|
+
id: "label_town",
|
|
1622
|
+
type: "symbol",
|
|
1623
|
+
source: "openmaptiles",
|
|
1624
|
+
"source-layer": "place",
|
|
1625
|
+
minzoom: 6,
|
|
1626
|
+
filter: ["==", ["get", "class"], "town"],
|
|
1627
|
+
layout: {
|
|
1628
|
+
"icon-allow-overlap": !0,
|
|
1629
|
+
"icon-optional": !1,
|
|
1630
|
+
"icon-size": 0.2,
|
|
1631
|
+
"text-anchor": "bottom",
|
|
1632
|
+
"text-field": ["coalesce", ["get", "name_en"], ["get", "name:latin"]],
|
|
1633
|
+
"text-font": ["Noto Sans Regular"],
|
|
1634
|
+
"text-max-width": 8,
|
|
1635
|
+
"text-size": ["interpolate", ["exponential", 1.2], ["zoom"], 7, 12, 11, 14]
|
|
1636
|
+
},
|
|
1637
|
+
paint: {
|
|
1638
|
+
"text-color": "rgba(0, 0, 0, 1)",
|
|
1639
|
+
"text-halo-color": "rgba(255, 255, 255, 1)",
|
|
1640
|
+
"text-halo-width": 1
|
|
1641
|
+
}
|
|
1642
|
+
},
|
|
1643
|
+
{
|
|
1644
|
+
id: "label_state",
|
|
1645
|
+
type: "symbol",
|
|
1646
|
+
source: "openmaptiles",
|
|
1647
|
+
"source-layer": "place",
|
|
1648
|
+
minzoom: 5,
|
|
1649
|
+
maxzoom: 8,
|
|
1650
|
+
filter: ["==", ["get", "class"], "state"],
|
|
1651
|
+
layout: {
|
|
1652
|
+
"text-field": ["coalesce", ["get", "name_en"], ["get", "name:latin"]],
|
|
1653
|
+
"text-font": ["Noto Sans Regular"],
|
|
1654
|
+
"text-letter-spacing": 0.2,
|
|
1655
|
+
"text-max-width": 9,
|
|
1656
|
+
"text-size": ["interpolate", ["linear"], ["zoom"], 5, 10, 8, 14],
|
|
1657
|
+
"text-transform": "uppercase"
|
|
1658
|
+
},
|
|
1659
|
+
paint: {
|
|
1660
|
+
"text-color": "rgba(17, 17, 17, 1)",
|
|
1661
|
+
"text-halo-color": "rgba(255, 255, 255, 1)",
|
|
1662
|
+
"text-halo-width": 1
|
|
1663
|
+
}
|
|
1664
|
+
},
|
|
1665
|
+
{
|
|
1666
|
+
id: "label_city",
|
|
1667
|
+
type: "symbol",
|
|
1668
|
+
source: "openmaptiles",
|
|
1669
|
+
"source-layer": "place",
|
|
1670
|
+
minzoom: 3,
|
|
1671
|
+
filter: ["all", ["==", ["get", "class"], "city"], ["!=", ["get", "capital"], 2]],
|
|
1672
|
+
layout: {
|
|
1673
|
+
"icon-allow-overlap": !0,
|
|
1674
|
+
"icon-optional": !1,
|
|
1675
|
+
"icon-size": 0.4,
|
|
1676
|
+
"text-anchor": "bottom",
|
|
1677
|
+
"text-field": ["coalesce", ["get", "name_en"], ["get", "name:latin"]],
|
|
1678
|
+
"text-font": ["Noto Sans Regular"],
|
|
1679
|
+
"text-max-width": 8,
|
|
1680
|
+
"text-offset": [0, -0.1],
|
|
1681
|
+
"text-size": ["interpolate", ["exponential", 1.2], ["zoom"], 4, 11, 7, 13, 11, 18]
|
|
1682
|
+
},
|
|
1683
|
+
paint: {
|
|
1684
|
+
"text-color": "rgba(0, 0, 0, 1)",
|
|
1685
|
+
"text-halo-color": "rgba(255, 255, 255, 1)",
|
|
1686
|
+
"text-halo-width": 1
|
|
1687
|
+
}
|
|
1688
|
+
},
|
|
1689
|
+
{
|
|
1690
|
+
id: "label_city_capital",
|
|
1691
|
+
type: "symbol",
|
|
1692
|
+
source: "openmaptiles",
|
|
1693
|
+
"source-layer": "place",
|
|
1694
|
+
minzoom: 3,
|
|
1695
|
+
filter: ["all", ["==", ["get", "class"], "city"], ["==", ["get", "capital"], 2]],
|
|
1696
|
+
layout: {
|
|
1697
|
+
"icon-allow-overlap": !0,
|
|
1698
|
+
"icon-optional": !1,
|
|
1699
|
+
"icon-size": 0.5,
|
|
1700
|
+
"text-anchor": "bottom",
|
|
1701
|
+
"text-field": ["coalesce", ["get", "name_en"], ["get", "name:latin"]],
|
|
1702
|
+
"text-font": ["Noto Sans Bold"],
|
|
1703
|
+
"text-max-width": 8,
|
|
1704
|
+
"text-offset": [0, -0.2],
|
|
1705
|
+
"text-size": ["interpolate", ["exponential", 1.2], ["zoom"], 4, 12, 7, 14, 11, 20]
|
|
1706
|
+
},
|
|
1707
|
+
paint: {
|
|
1708
|
+
"text-color": "rgba(0, 0, 0, 1)",
|
|
1709
|
+
"text-halo-color": "rgba(255, 255, 255, 1)",
|
|
1710
|
+
"text-halo-width": 1
|
|
1711
|
+
}
|
|
1712
|
+
},
|
|
1713
|
+
{
|
|
1714
|
+
id: "label_country_3",
|
|
1715
|
+
type: "symbol",
|
|
1716
|
+
source: "openmaptiles",
|
|
1717
|
+
"source-layer": "place",
|
|
1718
|
+
minzoom: 2,
|
|
1719
|
+
maxzoom: 9,
|
|
1720
|
+
filter: ["all", ["==", ["get", "class"], "country"], [">=", ["get", "rank"], 3]],
|
|
1721
|
+
layout: {
|
|
1722
|
+
"text-field": ["coalesce", ["get", "name_en"], ["get", "name:latin"]],
|
|
1723
|
+
"text-font": ["Noto Sans Bold"],
|
|
1724
|
+
"text-max-width": 6.25,
|
|
1725
|
+
"text-size": ["interpolate", ["linear"], ["zoom"], 3, 9, 7, 17]
|
|
1726
|
+
},
|
|
1727
|
+
paint: {
|
|
1728
|
+
"text-color": "rgba(0, 0, 0, 1)",
|
|
1729
|
+
"text-halo-color": "rgba(255, 255, 255, 1)",
|
|
1730
|
+
"text-halo-width": 1
|
|
1731
|
+
}
|
|
1732
|
+
},
|
|
1733
|
+
{
|
|
1734
|
+
id: "label_country_2",
|
|
1735
|
+
type: "symbol",
|
|
1736
|
+
source: "openmaptiles",
|
|
1737
|
+
"source-layer": "place",
|
|
1738
|
+
maxzoom: 9,
|
|
1739
|
+
filter: ["all", ["==", ["get", "class"], "country"], ["==", ["get", "rank"], 2]],
|
|
1740
|
+
layout: {
|
|
1741
|
+
"text-field": ["coalesce", ["get", "name_en"], ["get", "name:latin"]],
|
|
1742
|
+
"text-font": ["Noto Sans Bold"],
|
|
1743
|
+
"text-max-width": 6.25,
|
|
1744
|
+
"text-size": ["interpolate", ["linear"], ["zoom"], 2, 9, 5, 17]
|
|
1745
|
+
},
|
|
1746
|
+
paint: {
|
|
1747
|
+
"text-color": "rgba(0, 0, 0, 1)",
|
|
1748
|
+
"text-halo-color": "rgba(255, 255, 255, 1)",
|
|
1749
|
+
"text-halo-width": 1
|
|
1750
|
+
}
|
|
1751
|
+
},
|
|
1752
|
+
{
|
|
1753
|
+
id: "label_country_1",
|
|
1754
|
+
type: "symbol",
|
|
1755
|
+
source: "openmaptiles",
|
|
1756
|
+
"source-layer": "place",
|
|
1757
|
+
maxzoom: 9,
|
|
1758
|
+
filter: ["all", ["==", ["get", "class"], "country"], ["==", ["get", "rank"], 1]],
|
|
1759
|
+
layout: {
|
|
1760
|
+
"text-field": ["coalesce", ["get", "name_en"], ["get", "name:latin"]],
|
|
1761
|
+
"text-font": ["Noto Sans Bold"],
|
|
1762
|
+
"text-max-width": 6.25,
|
|
1763
|
+
"text-size": ["interpolate", ["linear"], ["zoom"], 1, 9, 4, 17]
|
|
1764
|
+
},
|
|
1765
|
+
paint: {
|
|
1766
|
+
"text-color": "rgba(0, 0, 0, 1)",
|
|
1767
|
+
"text-halo-color": "rgba(255, 255, 255, 1)",
|
|
1768
|
+
"text-halo-width": 1
|
|
1769
|
+
}
|
|
1770
|
+
}
|
|
1771
|
+
]
|
|
1772
|
+
};
|
|
1773
|
+
export {
|
|
1774
|
+
c as MapDarkStyle,
|
|
1775
|
+
r as MapLibreProvider,
|
|
1776
|
+
y as MapStyleLight
|
|
1777
|
+
};
|