@minmaps-dev/mm-web-sdk 1.0.0-rc.32 → 1.0.0-rc.34
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/README.md +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +366 -37
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.ts +14 -16
- package/dist/react.js +1 -1
- package/dist/react.js.map +1 -1
- package/package.json +2 -1
- package/src/themes/alt3-hybrid-style.json +742 -301
|
@@ -28,14 +28,6 @@
|
|
|
28
28
|
"type": "geojson",
|
|
29
29
|
"data": { "type": "FeatureCollection", "features": [] }
|
|
30
30
|
},
|
|
31
|
-
"accessibility-data": {
|
|
32
|
-
"type": "geojson",
|
|
33
|
-
"data": { "type": "FeatureCollection", "features": [] }
|
|
34
|
-
},
|
|
35
|
-
"unit-walls": {
|
|
36
|
-
"type": "geojson",
|
|
37
|
-
"data": { "type": "FeatureCollection", "features": [] }
|
|
38
|
-
},
|
|
39
31
|
"route-data": {
|
|
40
32
|
"type": "geojson",
|
|
41
33
|
"data": { "type": "FeatureCollection", "features": [] },
|
|
@@ -83,16 +75,63 @@
|
|
|
83
75
|
"filter": [
|
|
84
76
|
"in",
|
|
85
77
|
["get", "kind"],
|
|
86
|
-
["literal", ["park", "forest", "wood", "nature_reserve", "grass", "garden", "playground", "cemetery", "golf_course"]]
|
|
78
|
+
["literal", ["park", "forest", "wood", "nature_reserve", "grass", "garden", "playground", "cemetery", "golf_course", "pitch", "recreation_ground", "village_green", "meadow", "scrub"]]
|
|
87
79
|
],
|
|
88
80
|
"paint": {
|
|
89
|
-
"fill-color": "#cbe0b6"
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
81
|
+
"fill-color": "#cbe0b6"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"id": "basemap-landuse-coastal",
|
|
86
|
+
"type": "fill",
|
|
87
|
+
"source": "protomaps",
|
|
88
|
+
"source-layer": "landuse",
|
|
89
|
+
"filter": [
|
|
90
|
+
"in",
|
|
91
|
+
["get", "kind"],
|
|
92
|
+
["literal", ["beach", "sand", "wetland"]]
|
|
93
|
+
],
|
|
94
|
+
"paint": {
|
|
95
|
+
"fill-color": [
|
|
96
|
+
"match",
|
|
97
|
+
["get", "kind"],
|
|
98
|
+
["beach", "sand"], "#e9ddba",
|
|
99
|
+
"wetland", "#cdd8bf",
|
|
100
|
+
"#e9ddba"
|
|
101
|
+
]
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"id": "basemap-landuse-builtup",
|
|
106
|
+
"type": "fill",
|
|
107
|
+
"source": "protomaps",
|
|
108
|
+
"source-layer": "landuse",
|
|
109
|
+
"filter": [
|
|
110
|
+
"in",
|
|
111
|
+
["get", "kind"],
|
|
112
|
+
[
|
|
113
|
+
"literal",
|
|
114
|
+
[
|
|
115
|
+
"hospital", "clinic", "healthcare",
|
|
116
|
+
"university", "college", "school",
|
|
117
|
+
"parking",
|
|
118
|
+
"retail", "commercial",
|
|
119
|
+
"industrial", "railway",
|
|
120
|
+
"military"
|
|
121
|
+
]
|
|
122
|
+
]
|
|
123
|
+
],
|
|
124
|
+
"paint": {
|
|
125
|
+
"fill-color": [
|
|
126
|
+
"match",
|
|
127
|
+
["get", "kind"],
|
|
128
|
+
["hospital", "clinic", "healthcare"], "#ecdcd8",
|
|
129
|
+
["university", "college", "school"], "#e6ddc6",
|
|
130
|
+
"parking", "#dad7d0",
|
|
131
|
+
["retail", "commercial"], "#ece2d2",
|
|
132
|
+
["industrial", "railway"], "#ddd7cc",
|
|
133
|
+
"military", "#ddd7cc",
|
|
134
|
+
"#eae2d0"
|
|
96
135
|
]
|
|
97
136
|
}
|
|
98
137
|
},
|
|
@@ -106,65 +145,488 @@
|
|
|
106
145
|
}
|
|
107
146
|
},
|
|
108
147
|
{
|
|
109
|
-
"id": "basemap-
|
|
148
|
+
"id": "basemap-buildings",
|
|
149
|
+
"type": "fill",
|
|
150
|
+
"source": "protomaps",
|
|
151
|
+
"source-layer": "buildings",
|
|
152
|
+
"minzoom": 14,
|
|
153
|
+
"paint": {
|
|
154
|
+
"fill-color": "#d6cdb8",
|
|
155
|
+
"fill-outline-color": "#c3b89e",
|
|
156
|
+
"fill-opacity": [
|
|
157
|
+
"interpolate",
|
|
158
|
+
["linear"],
|
|
159
|
+
["zoom"],
|
|
160
|
+
14, 0.0,
|
|
161
|
+
15, 0.85,
|
|
162
|
+
18, 0.92
|
|
163
|
+
]
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"id": "basemap-rail",
|
|
168
|
+
"type": "line",
|
|
169
|
+
"source": "protomaps",
|
|
170
|
+
"source-layer": "roads",
|
|
171
|
+
"minzoom": 13,
|
|
172
|
+
"filter": ["==", ["get", "kind"], "rail"],
|
|
173
|
+
"paint": {
|
|
174
|
+
"line-color": "#a8a29a",
|
|
175
|
+
"line-width": [
|
|
176
|
+
"interpolate",
|
|
177
|
+
["linear"],
|
|
178
|
+
["zoom"],
|
|
179
|
+
13, 1.1,
|
|
180
|
+
16, 2.2,
|
|
181
|
+
19, 4
|
|
182
|
+
],
|
|
183
|
+
"line-dasharray": [2, 2]
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"id": "basemap-roads-tunnel",
|
|
110
188
|
"type": "line",
|
|
111
189
|
"source": "protomaps",
|
|
112
190
|
"source-layer": "roads",
|
|
113
191
|
"minzoom": 13,
|
|
114
192
|
"filter": [
|
|
115
|
-
"
|
|
116
|
-
["get", "
|
|
117
|
-
["literal", ["minor_road", "
|
|
193
|
+
"all",
|
|
194
|
+
["to-boolean", ["get", "is_tunnel"]],
|
|
195
|
+
["in", ["get", "kind"], ["literal", ["minor_road", "major_road", "medium_road", "highway", "path"]]]
|
|
118
196
|
],
|
|
119
197
|
"paint": {
|
|
120
|
-
"line-color": "#
|
|
198
|
+
"line-color": "#e8e2d4",
|
|
199
|
+
"line-width": ["interpolate", ["linear"], ["zoom"], 13, 1.0, 16, 3.2, 19, 8],
|
|
200
|
+
"line-dasharray": [3, 2],
|
|
201
|
+
"line-opacity": 0.85
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"id": "basemap-roads-minor-casing",
|
|
206
|
+
"type": "line",
|
|
207
|
+
"source": "protomaps",
|
|
208
|
+
"source-layer": "roads",
|
|
209
|
+
"minzoom": 13,
|
|
210
|
+
"filter": [
|
|
211
|
+
"all",
|
|
212
|
+
["!", ["to-boolean", ["get", "is_tunnel"]]],
|
|
213
|
+
["in", ["get", "kind"], ["literal", ["minor_road", "service", "other"]]],
|
|
214
|
+
["!", ["in", ["get", "kind_detail"], ["literal", ["footway", "sidewalk", "path", "steps", "cycleway", "crossing", "track", "pier", "pedestrian"]]]]
|
|
215
|
+
],
|
|
216
|
+
"layout": { "line-cap": "round", "line-join": "round" },
|
|
217
|
+
"paint": {
|
|
218
|
+
"line-color": "#d3cab4",
|
|
121
219
|
"line-width": [
|
|
122
220
|
"interpolate",
|
|
123
221
|
["linear"],
|
|
124
222
|
["zoom"],
|
|
125
|
-
13, 0.
|
|
126
|
-
16, 1.
|
|
127
|
-
19,
|
|
223
|
+
13, ["*", 2.6, ["match", ["get", "kind_detail"], "service", 0.6, "residential", 1.0, "unclassified", 0.85, 0.8]],
|
|
224
|
+
16, ["*", 6.8, ["match", ["get", "kind_detail"], "service", 0.6, "residential", 1.0, "unclassified", 0.85, 0.8]],
|
|
225
|
+
19, ["*", 14, ["match", ["get", "kind_detail"], "service", 0.6, "residential", 1.0, "unclassified", 0.85, 0.8]]
|
|
226
|
+
]
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"id": "basemap-roads-minor",
|
|
231
|
+
"type": "line",
|
|
232
|
+
"source": "protomaps",
|
|
233
|
+
"source-layer": "roads",
|
|
234
|
+
"minzoom": 13,
|
|
235
|
+
"filter": [
|
|
236
|
+
"all",
|
|
237
|
+
["!", ["to-boolean", ["get", "is_tunnel"]]],
|
|
238
|
+
["in", ["get", "kind"], ["literal", ["minor_road", "path", "service", "other"]]]
|
|
239
|
+
],
|
|
240
|
+
"layout": { "line-cap": "round", "line-join": "round" },
|
|
241
|
+
"paint": {
|
|
242
|
+
"line-color": [
|
|
243
|
+
"match",
|
|
244
|
+
["get", "kind_detail"],
|
|
245
|
+
["footway", "sidewalk", "path", "steps", "cycleway", "crossing", "track", "pier", "pedestrian"], "#ece8e0",
|
|
246
|
+
"service", "#f6f3ec",
|
|
247
|
+
"#FFFFFF"
|
|
128
248
|
],
|
|
129
|
-
"line-
|
|
249
|
+
"line-width": [
|
|
130
250
|
"interpolate",
|
|
131
251
|
["linear"],
|
|
132
252
|
["zoom"],
|
|
133
|
-
|
|
134
|
-
|
|
253
|
+
13, ["*", 1.2, ["match", ["get", "kind_detail"], "service", 0.6, "residential", 1.0, "unclassified", 0.85, ["footway", "sidewalk", "path", "steps", "cycleway", "crossing", "track", "pier", "pedestrian"], 0.5, 0.8]],
|
|
254
|
+
16, ["*", 4.0, ["match", ["get", "kind_detail"], "service", 0.6, "residential", 1.0, "unclassified", 0.85, ["footway", "sidewalk", "path", "steps", "cycleway", "crossing", "track", "pier", "pedestrian"], 0.5, 0.8]],
|
|
255
|
+
19, ["*", 9.5, ["match", ["get", "kind_detail"], "service", 0.6, "residential", 1.0, "unclassified", 0.85, ["footway", "sidewalk", "path", "steps", "cycleway", "crossing", "track", "pier", "pedestrian"], 0.5, 0.8]]
|
|
135
256
|
]
|
|
136
257
|
}
|
|
137
258
|
},
|
|
138
259
|
{
|
|
139
|
-
"id": "basemap-roads-major",
|
|
260
|
+
"id": "basemap-roads-major-casing",
|
|
140
261
|
"type": "line",
|
|
141
262
|
"source": "protomaps",
|
|
142
263
|
"source-layer": "roads",
|
|
143
264
|
"minzoom": 10,
|
|
144
265
|
"filter": [
|
|
145
|
-
"
|
|
146
|
-
["get", "
|
|
147
|
-
["literal", ["highway", "major_road", "medium_road"]]
|
|
266
|
+
"all",
|
|
267
|
+
["!", ["to-boolean", ["get", "is_tunnel"]]],
|
|
268
|
+
["in", ["get", "kind"], ["literal", ["highway", "major_road", "medium_road"]]]
|
|
148
269
|
],
|
|
270
|
+
"layout": { "line-cap": "round", "line-join": "round" },
|
|
149
271
|
"paint": {
|
|
150
|
-
"line-color":
|
|
272
|
+
"line-color": [
|
|
273
|
+
"match",
|
|
274
|
+
["get", "kind_detail"],
|
|
275
|
+
["motorway", "trunk", "motorway_link", "trunk_link", "primary", "primary_link"], "#d79a2a",
|
|
276
|
+
"#e0bc72"
|
|
277
|
+
],
|
|
151
278
|
"line-width": [
|
|
152
279
|
"interpolate",
|
|
153
280
|
["linear"],
|
|
154
281
|
["zoom"],
|
|
155
|
-
10, 0.5,
|
|
156
|
-
14, 1.5,
|
|
157
|
-
18,
|
|
282
|
+
10, ["*", 2.0, ["match", ["get", "kind_detail"], ["motorway", "trunk"], 1.5, ["primary", "primary_link"], 1.3, ["secondary", "secondary_link"], 1.05, ["tertiary", "tertiary_link"], 0.85, 0.95]],
|
|
283
|
+
14, ["*", 5.6, ["match", ["get", "kind_detail"], ["motorway", "trunk"], 1.5, ["primary", "primary_link"], 1.3, ["secondary", "secondary_link"], 1.05, ["tertiary", "tertiary_link"], 0.85, 0.95]],
|
|
284
|
+
18, ["*", 15, ["match", ["get", "kind_detail"], ["motorway", "trunk"], 1.5, ["primary", "primary_link"], 1.3, ["secondary", "secondary_link"], 1.05, ["tertiary", "tertiary_link"], 0.85, 0.95]]
|
|
285
|
+
]
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"id": "basemap-roads-major",
|
|
290
|
+
"type": "line",
|
|
291
|
+
"source": "protomaps",
|
|
292
|
+
"source-layer": "roads",
|
|
293
|
+
"minzoom": 10,
|
|
294
|
+
"filter": [
|
|
295
|
+
"all",
|
|
296
|
+
["!", ["to-boolean", ["get", "is_tunnel"]]],
|
|
297
|
+
["in", ["get", "kind"], ["literal", ["highway", "major_road", "medium_road"]]]
|
|
298
|
+
],
|
|
299
|
+
"layout": { "line-cap": "round", "line-join": "round" },
|
|
300
|
+
"paint": {
|
|
301
|
+
"line-color": [
|
|
302
|
+
"match",
|
|
303
|
+
["get", "kind_detail"],
|
|
304
|
+
["motorway", "trunk", "motorway_link", "trunk_link"], "#e8bf6a",
|
|
305
|
+
["primary", "primary_link"], "#ecc97e",
|
|
306
|
+
"#efd699"
|
|
158
307
|
],
|
|
159
|
-
"line-
|
|
308
|
+
"line-width": [
|
|
160
309
|
"interpolate",
|
|
161
310
|
["linear"],
|
|
162
311
|
["zoom"],
|
|
163
|
-
|
|
164
|
-
|
|
312
|
+
10, ["*", 1.0, ["match", ["get", "kind_detail"], ["motorway", "trunk"], 1.5, ["primary", "primary_link"], 1.3, ["secondary", "secondary_link"], 1.05, ["tertiary", "tertiary_link"], 0.85, 0.95]],
|
|
313
|
+
14, ["*", 3.4, ["match", ["get", "kind_detail"], ["motorway", "trunk"], 1.5, ["primary", "primary_link"], 1.3, ["secondary", "secondary_link"], 1.05, ["tertiary", "tertiary_link"], 0.85, 0.95]],
|
|
314
|
+
18, ["*", 11, ["match", ["get", "kind_detail"], ["motorway", "trunk"], 1.5, ["primary", "primary_link"], 1.3, ["secondary", "secondary_link"], 1.05, ["tertiary", "tertiary_link"], 0.85, 0.95]]
|
|
165
315
|
]
|
|
166
316
|
}
|
|
167
317
|
},
|
|
318
|
+
{
|
|
319
|
+
"id": "basemap-roads-bridge-casing",
|
|
320
|
+
"type": "line",
|
|
321
|
+
"source": "protomaps",
|
|
322
|
+
"source-layer": "roads",
|
|
323
|
+
"minzoom": 13,
|
|
324
|
+
"filter": [
|
|
325
|
+
"all",
|
|
326
|
+
["to-boolean", ["get", "is_bridge"]],
|
|
327
|
+
["in", ["get", "kind"], ["literal", ["highway", "major_road", "medium_road"]]]
|
|
328
|
+
],
|
|
329
|
+
"layout": { "line-cap": "butt" },
|
|
330
|
+
"paint": {
|
|
331
|
+
"line-color": "#b7ad97",
|
|
332
|
+
"line-gap-width": [
|
|
333
|
+
"interpolate",
|
|
334
|
+
["linear"],
|
|
335
|
+
["zoom"],
|
|
336
|
+
10, ["*", 1.0, ["match", ["get", "kind_detail"], ["motorway", "trunk"], 1.5, ["primary", "primary_link"], 1.3, ["secondary", "secondary_link"], 1.05, ["tertiary", "tertiary_link"], 0.85, 0.95]],
|
|
337
|
+
14, ["*", 3.4, ["match", ["get", "kind_detail"], ["motorway", "trunk"], 1.5, ["primary", "primary_link"], 1.3, ["secondary", "secondary_link"], 1.05, ["tertiary", "tertiary_link"], 0.85, 0.95]],
|
|
338
|
+
18, ["*", 11, ["match", ["get", "kind_detail"], ["motorway", "trunk"], 1.5, ["primary", "primary_link"], 1.3, ["secondary", "secondary_link"], 1.05, ["tertiary", "tertiary_link"], 0.85, 0.95]]
|
|
339
|
+
],
|
|
340
|
+
"line-width": ["interpolate", ["linear"], ["zoom"], 13, 0.9, 16, 1.5, 19, 2.4]
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
|
|
344
|
+
{
|
|
345
|
+
"id": "basemap-road-shields",
|
|
346
|
+
"type": "symbol",
|
|
347
|
+
"source": "protomaps",
|
|
348
|
+
"source-layer": "roads",
|
|
349
|
+
"minzoom": 13,
|
|
350
|
+
"filter": [
|
|
351
|
+
"all",
|
|
352
|
+
["!", ["to-boolean", ["get", "is_tunnel"]]],
|
|
353
|
+
["any", ["has", "shield_text"], ["has", "ref"]]
|
|
354
|
+
],
|
|
355
|
+
"layout": {
|
|
356
|
+
"symbol-placement": "line",
|
|
357
|
+
"symbol-spacing": 240,
|
|
358
|
+
"symbol-sort-key": 5,
|
|
359
|
+
"icon-image": [
|
|
360
|
+
"concat",
|
|
361
|
+
"mm-shield:",
|
|
362
|
+
[
|
|
363
|
+
"let",
|
|
364
|
+
"st", ["upcase", ["coalesce", ["get", "shield_text"], ["get", "ref"], ""]],
|
|
365
|
+
[
|
|
366
|
+
"case",
|
|
367
|
+
["any",
|
|
368
|
+
["==", ["get", "network"], "US:I"],
|
|
369
|
+
["all",
|
|
370
|
+
["==", ["slice", ["var", "st"], 0, 1], "I"],
|
|
371
|
+
["in", ["slice", ["var", "st"], 1, 2], "0123456789"]
|
|
372
|
+
]
|
|
373
|
+
], "i",
|
|
374
|
+
["==", ["get", "network"], "US:US"], "us",
|
|
375
|
+
["==", ["slice", ["var", "st"], 0, 2], "US"], "us",
|
|
376
|
+
["==", ["slice", ["var", "st"], 0, 2], "CR"], "cr",
|
|
377
|
+
"st"
|
|
378
|
+
]
|
|
379
|
+
],
|
|
380
|
+
":",
|
|
381
|
+
[
|
|
382
|
+
"let",
|
|
383
|
+
"n", [
|
|
384
|
+
"let",
|
|
385
|
+
"rf", ["upcase", ["coalesce", ["get", "ref"], ["get", "shield_text"], ""]],
|
|
386
|
+
[
|
|
387
|
+
"case",
|
|
388
|
+
[">=", ["index-of", " ", ["var", "rf"]], 0],
|
|
389
|
+
["slice", ["var", "rf"], ["+", ["index-of", " ", ["var", "rf"]], 1]],
|
|
390
|
+
["var", "rf"]
|
|
391
|
+
]
|
|
392
|
+
],
|
|
393
|
+
[
|
|
394
|
+
"case",
|
|
395
|
+
[">=", ["index-of", ";", ["var", "n"]], 0],
|
|
396
|
+
["slice", ["var", "n"], 0, ["index-of", ";", ["var", "n"]]],
|
|
397
|
+
["var", "n"]
|
|
398
|
+
]
|
|
399
|
+
]
|
|
400
|
+
],
|
|
401
|
+
"icon-size": ["interpolate", ["linear"], ["zoom"], 13, 0.72, 16, 0.88, 19, 1.0],
|
|
402
|
+
"icon-rotation-alignment": "viewport",
|
|
403
|
+
"icon-pitch-alignment": "viewport",
|
|
404
|
+
"icon-allow-overlap": false,
|
|
405
|
+
"icon-padding": 4
|
|
406
|
+
}
|
|
407
|
+
},
|
|
408
|
+
|
|
409
|
+
{
|
|
410
|
+
"id": "basemap-street-labels",
|
|
411
|
+
"type": "symbol",
|
|
412
|
+
"source": "protomaps",
|
|
413
|
+
"source-layer": "roads",
|
|
414
|
+
"minzoom": 13,
|
|
415
|
+
"filter": [
|
|
416
|
+
"all",
|
|
417
|
+
["has", "name"],
|
|
418
|
+
[
|
|
419
|
+
"in",
|
|
420
|
+
["get", "kind"],
|
|
421
|
+
["literal", ["highway", "major_road", "medium_road", "minor_road"]]
|
|
422
|
+
]
|
|
423
|
+
],
|
|
424
|
+
"layout": {
|
|
425
|
+
"symbol-placement": "line",
|
|
426
|
+
"symbol-spacing": 330,
|
|
427
|
+
"text-field": ["coalesce", ["get", "name:en"], ["get", "name"]],
|
|
428
|
+
"text-font": [
|
|
429
|
+
"match",
|
|
430
|
+
["get", "kind"],
|
|
431
|
+
["highway", "major_road"], ["literal", ["Noto Sans Bold"]],
|
|
432
|
+
["literal", ["Noto Sans Regular"]]
|
|
433
|
+
],
|
|
434
|
+
"text-size": [
|
|
435
|
+
"interpolate",
|
|
436
|
+
["linear"],
|
|
437
|
+
["zoom"],
|
|
438
|
+
13, ["*", 10.5, ["match", ["get", "kind"], "highway", 1.12, "major_road", 1.06, "minor_road", 0.94, 1.0]],
|
|
439
|
+
16, ["*", 13.0, ["match", ["get", "kind"], "highway", 1.12, "major_road", 1.06, "minor_road", 0.94, 1.0]],
|
|
440
|
+
19, ["*", 16.0, ["match", ["get", "kind"], "highway", 1.12, "major_road", 1.06, "minor_road", 0.94, 1.0]]
|
|
441
|
+
],
|
|
442
|
+
"text-letter-spacing": 0.04,
|
|
443
|
+
"text-max-angle": 40,
|
|
444
|
+
"text-padding": 3,
|
|
445
|
+
"text-rotation-alignment": "map",
|
|
446
|
+
"text-pitch-alignment": "viewport",
|
|
447
|
+
"symbol-sort-key": [
|
|
448
|
+
"match",
|
|
449
|
+
["get", "kind"],
|
|
450
|
+
"highway", 0,
|
|
451
|
+
"major_road", 1,
|
|
452
|
+
"medium_road", 2,
|
|
453
|
+
"minor_road", 3,
|
|
454
|
+
4
|
|
455
|
+
]
|
|
456
|
+
},
|
|
457
|
+
"paint": {
|
|
458
|
+
"text-color": [
|
|
459
|
+
"match",
|
|
460
|
+
["get", "kind"],
|
|
461
|
+
["highway", "major_road"], "#463f32",
|
|
462
|
+
"#5b5346"
|
|
463
|
+
],
|
|
464
|
+
"text-halo-color": "#fffffe",
|
|
465
|
+
"text-halo-width": 1.9,
|
|
466
|
+
"text-halo-blur": 0.3
|
|
467
|
+
}
|
|
468
|
+
},
|
|
469
|
+
|
|
470
|
+
{
|
|
471
|
+
"id": "basemap-poi-marine",
|
|
472
|
+
"type": "symbol",
|
|
473
|
+
"source": "protomaps",
|
|
474
|
+
"source-layer": "pois",
|
|
475
|
+
"minzoom": 13,
|
|
476
|
+
"filter": [
|
|
477
|
+
"in",
|
|
478
|
+
["get", "kind"],
|
|
479
|
+
["literal", ["marina", "ferry_terminal", "ferry", "ferry_stop"]]
|
|
480
|
+
],
|
|
481
|
+
"layout": {
|
|
482
|
+
"symbol-sort-key": 20,
|
|
483
|
+
"icon-image": [
|
|
484
|
+
"match",
|
|
485
|
+
["get", "kind"],
|
|
486
|
+
"marina", "basemap-poi-anchor",
|
|
487
|
+
["ferry_terminal", "ferry", "ferry_stop"], "basemap-poi-directions_boat",
|
|
488
|
+
"basemap-poi-anchor"
|
|
489
|
+
],
|
|
490
|
+
"icon-size": ["interpolate", ["linear"], ["zoom"], 13, 0.5, 16, 0.68, 19, 0.82],
|
|
491
|
+
"icon-allow-overlap": false,
|
|
492
|
+
"icon-optional": false,
|
|
493
|
+
"icon-padding": 4,
|
|
494
|
+
"icon-rotation-alignment": "viewport",
|
|
495
|
+
"icon-pitch-alignment": "viewport",
|
|
496
|
+
"text-field": ["coalesce", ["get", "name:en"], ["get", "name"]],
|
|
497
|
+
"text-font": ["Noto Sans Bold"],
|
|
498
|
+
"text-size": ["interpolate", ["linear"], ["zoom"], 15.5, 0, 16.5, 11.5, 19, 13.5],
|
|
499
|
+
"text-offset": [0, 1.8],
|
|
500
|
+
"text-anchor": "top",
|
|
501
|
+
"text-optional": true,
|
|
502
|
+
"text-padding": 4,
|
|
503
|
+
"text-rotation-alignment": "viewport"
|
|
504
|
+
},
|
|
505
|
+
"paint": {
|
|
506
|
+
"text-color": "#4a5560",
|
|
507
|
+
"text-halo-color": "#fffffe",
|
|
508
|
+
"text-halo-width": 1.9,
|
|
509
|
+
"text-halo-blur": 0.3
|
|
510
|
+
}
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
"id": "basemap-poi-civic",
|
|
514
|
+
"type": "symbol",
|
|
515
|
+
"source": "protomaps",
|
|
516
|
+
"source-layer": "pois",
|
|
517
|
+
"minzoom": 13,
|
|
518
|
+
"filter": [
|
|
519
|
+
"in",
|
|
520
|
+
["get", "kind"],
|
|
521
|
+
["literal", ["place_of_worship", "fire_station", "post_office", "library", "townhall", "school", "hospital"]]
|
|
522
|
+
],
|
|
523
|
+
"layout": {
|
|
524
|
+
"symbol-sort-key": 25,
|
|
525
|
+
"icon-image": [
|
|
526
|
+
"match",
|
|
527
|
+
["get", "kind"],
|
|
528
|
+
"place_of_worship", [
|
|
529
|
+
"match",
|
|
530
|
+
["get", "kind_detail"],
|
|
531
|
+
"christian", "basemap-poi-church",
|
|
532
|
+
"jewish", "basemap-poi-synagogue",
|
|
533
|
+
"muslim", "basemap-poi-mosque",
|
|
534
|
+
"buddhist", "basemap-poi-temple_buddhist",
|
|
535
|
+
"hindu", "basemap-poi-temple_hindu",
|
|
536
|
+
"basemap-poi-church"
|
|
537
|
+
],
|
|
538
|
+
"fire_station", "basemap-poi-local_fire_department",
|
|
539
|
+
"post_office", "basemap-poi-local_post_office",
|
|
540
|
+
"library", "basemap-poi-local_library",
|
|
541
|
+
"townhall", "basemap-poi-account_balance",
|
|
542
|
+
"school", "basemap-poi-school",
|
|
543
|
+
"hospital", "basemap-poi-local_hospital",
|
|
544
|
+
"basemap-poi-account_balance"
|
|
545
|
+
],
|
|
546
|
+
"icon-size": ["interpolate", ["linear"], ["zoom"], 13, 0.5, 16, 0.68, 19, 0.82],
|
|
547
|
+
"icon-allow-overlap": false,
|
|
548
|
+
"icon-optional": false,
|
|
549
|
+
"icon-padding": 4,
|
|
550
|
+
"icon-rotation-alignment": "viewport",
|
|
551
|
+
"icon-pitch-alignment": "viewport",
|
|
552
|
+
"text-field": ["coalesce", ["get", "name:en"], ["get", "name"]],
|
|
553
|
+
"text-font": ["Noto Sans Bold"],
|
|
554
|
+
"text-size": ["interpolate", ["linear"], ["zoom"], 15.5, 0, 16.5, 11.5, 19, 13.5],
|
|
555
|
+
"text-offset": [0, 1.8],
|
|
556
|
+
"text-anchor": "top",
|
|
557
|
+
"text-optional": true,
|
|
558
|
+
"text-padding": 4,
|
|
559
|
+
"text-rotation-alignment": "viewport"
|
|
560
|
+
},
|
|
561
|
+
"paint": {
|
|
562
|
+
"text-color": "#4a5560",
|
|
563
|
+
"text-halo-color": "#fffffe",
|
|
564
|
+
"text-halo-width": 1.9,
|
|
565
|
+
"text-halo-blur": 0.3
|
|
566
|
+
}
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
"id": "basemap-park-labels",
|
|
570
|
+
"type": "symbol",
|
|
571
|
+
"source": "protomaps",
|
|
572
|
+
"source-layer": "pois",
|
|
573
|
+
"minzoom": 12,
|
|
574
|
+
"filter": [
|
|
575
|
+
"all",
|
|
576
|
+
["has", "name"],
|
|
577
|
+
[
|
|
578
|
+
"in",
|
|
579
|
+
["get", "kind"],
|
|
580
|
+
["literal", ["park", "nature_reserve", "garden", "recreation_ground", "dog_park", "golf_course", "protected_area"]]
|
|
581
|
+
]
|
|
582
|
+
],
|
|
583
|
+
"layout": {
|
|
584
|
+
"symbol-sort-key": 30,
|
|
585
|
+
"text-field": ["coalesce", ["get", "name:en"], ["get", "name"]],
|
|
586
|
+
"text-font": ["Noto Sans Bold"],
|
|
587
|
+
"text-size": ["interpolate", ["linear"], ["zoom"], 12, 11, 15, 13.5, 18, 16],
|
|
588
|
+
"text-max-width": 8,
|
|
589
|
+
"text-letter-spacing": 0.03,
|
|
590
|
+
"text-padding": 4,
|
|
591
|
+
"text-anchor": "center",
|
|
592
|
+
"text-rotation-alignment": "viewport",
|
|
593
|
+
"text-pitch-alignment": "viewport",
|
|
594
|
+
"text-optional": true
|
|
595
|
+
},
|
|
596
|
+
"paint": {
|
|
597
|
+
"text-color": "#3d6b2f",
|
|
598
|
+
"text-halo-color": "#fffffe",
|
|
599
|
+
"text-halo-width": 1.9,
|
|
600
|
+
"text-halo-blur": 0.3
|
|
601
|
+
}
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
"id": "basemap-water-labels",
|
|
605
|
+
"type": "symbol",
|
|
606
|
+
"source": "protomaps",
|
|
607
|
+
"source-layer": "water",
|
|
608
|
+
"minzoom": 12,
|
|
609
|
+
"filter": ["has", "name"],
|
|
610
|
+
"layout": {
|
|
611
|
+
"symbol-sort-key": 28,
|
|
612
|
+
"text-field": ["coalesce", ["get", "name:en"], ["get", "name"]],
|
|
613
|
+
"text-font": ["Noto Sans Italic"],
|
|
614
|
+
"text-size": ["interpolate", ["linear"], ["zoom"], 12, 11, 15, 13, 18, 15],
|
|
615
|
+
"text-max-width": 8,
|
|
616
|
+
"text-letter-spacing": 0.04,
|
|
617
|
+
"text-padding": 4,
|
|
618
|
+
"text-anchor": "center",
|
|
619
|
+
"text-rotation-alignment": "viewport",
|
|
620
|
+
"text-pitch-alignment": "viewport",
|
|
621
|
+
"text-optional": true
|
|
622
|
+
},
|
|
623
|
+
"paint": {
|
|
624
|
+
"text-color": "#4a7396",
|
|
625
|
+
"text-halo-color": "#fffffe",
|
|
626
|
+
"text-halo-width": 1.7,
|
|
627
|
+
"text-halo-blur": 0.3
|
|
628
|
+
}
|
|
629
|
+
},
|
|
168
630
|
|
|
169
631
|
{
|
|
170
632
|
"id": "pattern-water",
|
|
@@ -195,8 +657,8 @@
|
|
|
195
657
|
"minzoom": 16.5,
|
|
196
658
|
"filter": ["==", ["get", "featureType"], "Pattern-Trees"],
|
|
197
659
|
"paint": {
|
|
198
|
-
"fill-color": "#
|
|
199
|
-
"fill-opacity": 0.
|
|
660
|
+
"fill-color": "#7D9F64",
|
|
661
|
+
"fill-opacity": 0.8
|
|
200
662
|
}
|
|
201
663
|
},
|
|
202
664
|
{
|
|
@@ -230,7 +692,7 @@
|
|
|
230
692
|
"minzoom": 16.5,
|
|
231
693
|
"filter": ["==", ["get", "featureType"], "Parking-Lots"],
|
|
232
694
|
"paint": {
|
|
233
|
-
"fill-color": "#
|
|
695
|
+
"fill-color": "#adadad",
|
|
234
696
|
"fill-opacity": 0.5
|
|
235
697
|
}
|
|
236
698
|
},
|
|
@@ -286,33 +748,10 @@
|
|
|
286
748
|
["==", ["get", "featureType"], "Corridor"]
|
|
287
749
|
],
|
|
288
750
|
"paint": {
|
|
289
|
-
"fill-color": "#
|
|
751
|
+
"fill-color": "#f0f0f0"
|
|
290
752
|
}
|
|
291
753
|
},
|
|
292
754
|
|
|
293
|
-
{
|
|
294
|
-
"id": "accessible-routes",
|
|
295
|
-
"type": "line",
|
|
296
|
-
"source": "accessibility-data",
|
|
297
|
-
"minzoom": 16.5,
|
|
298
|
-
"filter": ["==", ["get", "accessible"], true],
|
|
299
|
-
"paint": {
|
|
300
|
-
"line-color": "#2E7D32",
|
|
301
|
-
"line-width": [
|
|
302
|
-
"interpolate",
|
|
303
|
-
["linear"],
|
|
304
|
-
["zoom"],
|
|
305
|
-
15,
|
|
306
|
-
2,
|
|
307
|
-
18,
|
|
308
|
-
3,
|
|
309
|
-
20,
|
|
310
|
-
4
|
|
311
|
-
],
|
|
312
|
-
"line-dasharray": [0.5, 1],
|
|
313
|
-
"line-opacity": 0.7
|
|
314
|
-
}
|
|
315
|
-
},
|
|
316
755
|
|
|
317
756
|
{
|
|
318
757
|
"id": "units-fill",
|
|
@@ -348,7 +787,7 @@
|
|
|
348
787
|
"line-cap": "round"
|
|
349
788
|
},
|
|
350
789
|
"paint": {
|
|
351
|
-
"line-color": "#
|
|
790
|
+
"line-color": "#ffffff",
|
|
352
791
|
"line-opacity": 0.9,
|
|
353
792
|
"line-width": ["interpolate", ["linear"], ["zoom"], 16, 0.8, 18, 1.4, 20, 2.2]
|
|
354
793
|
}
|
|
@@ -365,18 +804,6 @@
|
|
|
365
804
|
}
|
|
366
805
|
},
|
|
367
806
|
|
|
368
|
-
{
|
|
369
|
-
"id": "backofhouse-pattern",
|
|
370
|
-
"type": "line",
|
|
371
|
-
"source": "indoor-data",
|
|
372
|
-
"minzoom": 16.5,
|
|
373
|
-
"filter": ["==", ["get", "featureType"], "Back-of-house"],
|
|
374
|
-
"paint": {
|
|
375
|
-
"line-color": "#c4c4c4",
|
|
376
|
-
"line-width": 0.5,
|
|
377
|
-
"line-opacity": 0.4
|
|
378
|
-
}
|
|
379
|
-
},
|
|
380
807
|
{
|
|
381
808
|
"id": "backofhouse-outline-2d",
|
|
382
809
|
"type": "line",
|
|
@@ -426,7 +853,7 @@
|
|
|
426
853
|
"line-cap": "round"
|
|
427
854
|
},
|
|
428
855
|
"paint": {
|
|
429
|
-
"line-color": "#
|
|
856
|
+
"line-color": "#ffffff",
|
|
430
857
|
"line-width": [
|
|
431
858
|
"interpolate",
|
|
432
859
|
["linear"],
|
|
@@ -526,21 +953,6 @@
|
|
|
526
953
|
}
|
|
527
954
|
},
|
|
528
955
|
|
|
529
|
-
{
|
|
530
|
-
"id": "exits-doors",
|
|
531
|
-
"type": "fill",
|
|
532
|
-
"source": "indoor-data",
|
|
533
|
-
"minzoom": 16.5,
|
|
534
|
-
"filter": [
|
|
535
|
-
"in",
|
|
536
|
-
["get", "featureType"],
|
|
537
|
-
["literal", ["Exits", "Doors", "Exit", "Door"]]
|
|
538
|
-
],
|
|
539
|
-
"paint": {
|
|
540
|
-
"fill-color": "#cdd9c9",
|
|
541
|
-
"fill-opacity": 0.6
|
|
542
|
-
}
|
|
543
|
-
},
|
|
544
956
|
|
|
545
957
|
{
|
|
546
958
|
"id": "kiosks-fill",
|
|
@@ -571,7 +983,7 @@
|
|
|
571
983
|
"type": "fill",
|
|
572
984
|
"source": "indoor-data",
|
|
573
985
|
"minzoom": 16.5,
|
|
574
|
-
"filter": ["==", ["get", "featureType"], "Pattern-
|
|
986
|
+
"filter": ["==", ["get", "featureType"], "Pattern-Indoor-FoodCourt-Seating"],
|
|
575
987
|
"paint": {
|
|
576
988
|
"fill-color": "#f3e4c4",
|
|
577
989
|
"fill-opacity": 0.6
|
|
@@ -649,7 +1061,7 @@
|
|
|
649
1061
|
"line-cap": "round"
|
|
650
1062
|
},
|
|
651
1063
|
"paint": {
|
|
652
|
-
"line-color": "#
|
|
1064
|
+
"line-color": "#162e51",
|
|
653
1065
|
"line-width": [
|
|
654
1066
|
"interpolate",
|
|
655
1067
|
["linear"],
|
|
@@ -751,13 +1163,13 @@
|
|
|
751
1163
|
}
|
|
752
1164
|
},
|
|
753
1165
|
{
|
|
754
|
-
"id": "unit-highlight-
|
|
755
|
-
"type": "fill
|
|
1166
|
+
"id": "unit-highlight-fill",
|
|
1167
|
+
"type": "fill",
|
|
756
1168
|
"source": "poi-highlight-data",
|
|
757
1169
|
"minzoom": 16.5,
|
|
758
1170
|
"filter": ["==", ["geometry-type"], "Polygon"],
|
|
759
1171
|
"paint": {
|
|
760
|
-
"fill-
|
|
1172
|
+
"fill-color": [
|
|
761
1173
|
"coalesce",
|
|
762
1174
|
["get", "zoneColor"],
|
|
763
1175
|
[
|
|
@@ -777,77 +1189,54 @@
|
|
|
777
1189
|
"#005ea2"
|
|
778
1190
|
]
|
|
779
1191
|
],
|
|
780
|
-
"fill-
|
|
781
|
-
"fill-
|
|
782
|
-
"interpolate",
|
|
783
|
-
["linear"],
|
|
784
|
-
["zoom"],
|
|
785
|
-
16.5, 0,
|
|
786
|
-
18, 2.6
|
|
787
|
-
],
|
|
788
|
-
"fill-extrusion-base": 0,
|
|
789
|
-
"fill-extrusion-vertical-gradient": true,
|
|
790
|
-
"fill-extrusion-opacity": 1
|
|
791
|
-
}
|
|
792
|
-
},
|
|
793
|
-
|
|
794
|
-
{
|
|
795
|
-
"id": "units-wall-extrusion",
|
|
796
|
-
"type": "fill-extrusion",
|
|
797
|
-
"source": "unit-walls",
|
|
798
|
-
"minzoom": 16.5,
|
|
799
|
-
"filter": [
|
|
800
|
-
"all",
|
|
801
|
-
["==", ["get", "featureType"], "UnitWalls"],
|
|
802
|
-
["!", ["has", "custom_height"]]
|
|
803
|
-
],
|
|
804
|
-
"layout": {
|
|
805
|
-
"visibility": "none"
|
|
806
|
-
},
|
|
807
|
-
"paint": {
|
|
808
|
-
"fill-extrusion-color": "#e6e9ee",
|
|
809
|
-
"fill-extrusion-height": [
|
|
1192
|
+
"fill-color-transition": { "duration": 350 },
|
|
1193
|
+
"fill-opacity": [
|
|
810
1194
|
"interpolate",
|
|
811
1195
|
["linear"],
|
|
812
1196
|
["zoom"],
|
|
813
|
-
15
|
|
814
|
-
0,
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
["case", ["==", ["get", "wallKind"], "interior"], 0.9, 1.6]
|
|
821
|
-
],
|
|
822
|
-
"fill-extrusion-base": 0,
|
|
823
|
-
"fill-extrusion-vertical-gradient": true,
|
|
824
|
-
"fill-extrusion-opacity": 1
|
|
1197
|
+
15,
|
|
1198
|
+
0.85,
|
|
1199
|
+
17,
|
|
1200
|
+
0.92,
|
|
1201
|
+
19,
|
|
1202
|
+
0.95
|
|
1203
|
+
]
|
|
825
1204
|
}
|
|
826
1205
|
},
|
|
827
|
-
|
|
828
1206
|
{
|
|
829
|
-
"id": "
|
|
1207
|
+
"id": "unit-highlight-block",
|
|
830
1208
|
"type": "fill-extrusion",
|
|
831
|
-
"source": "
|
|
1209
|
+
"source": "poi-highlight-data",
|
|
832
1210
|
"minzoom": 16.5,
|
|
833
|
-
"filter": ["
|
|
834
|
-
"layout": {
|
|
835
|
-
"visibility": "none"
|
|
836
|
-
},
|
|
1211
|
+
"filter": ["==", ["geometry-type"], "Polygon"],
|
|
837
1212
|
"paint": {
|
|
838
|
-
"fill-extrusion-color":
|
|
1213
|
+
"fill-extrusion-color": [
|
|
1214
|
+
"coalesce",
|
|
1215
|
+
["get", "zoneColor"],
|
|
1216
|
+
[
|
|
1217
|
+
"match",
|
|
1218
|
+
["get", "category"],
|
|
1219
|
+
"healthcare", "#73b3e7",
|
|
1220
|
+
"surgical", "#73b3e7",
|
|
1221
|
+
"waiting", "#73b3e7",
|
|
1222
|
+
"diagnostic", "#97d4ea",
|
|
1223
|
+
"amenities", "#97d4ea",
|
|
1224
|
+
"emergency", "#f2938c",
|
|
1225
|
+
"retail", "#fee685",
|
|
1226
|
+
"fnb", "#fee685",
|
|
1227
|
+
"admin", "#dfe1e2",
|
|
1228
|
+
"staff", "#dfe1e2",
|
|
1229
|
+
"security", "#dfe1e2",
|
|
1230
|
+
"#005ea2"
|
|
1231
|
+
]
|
|
1232
|
+
],
|
|
1233
|
+
"fill-extrusion-color-transition": { "duration": 350 },
|
|
839
1234
|
"fill-extrusion-height": [
|
|
840
1235
|
"interpolate",
|
|
841
1236
|
["linear"],
|
|
842
1237
|
["zoom"],
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
16.5,
|
|
846
|
-
1,
|
|
847
|
-
17.5,
|
|
848
|
-
1.4,
|
|
849
|
-
18.2,
|
|
850
|
-
1.6
|
|
1238
|
+
16.5, 0,
|
|
1239
|
+
18, 2.6
|
|
851
1240
|
],
|
|
852
1241
|
"fill-extrusion-base": 0,
|
|
853
1242
|
"fill-extrusion-vertical-gradient": true,
|
|
@@ -855,26 +1244,8 @@
|
|
|
855
1244
|
}
|
|
856
1245
|
},
|
|
857
1246
|
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
"type": "fill-extrusion",
|
|
861
|
-
"source": "indoor-data",
|
|
862
|
-
"minzoom": 16.5,
|
|
863
|
-
"filter": [
|
|
864
|
-
"any",
|
|
865
|
-
["==", ["get", "featureType"], "Corridors"],
|
|
866
|
-
["==", ["get", "featureType"], "Corridor"]
|
|
867
|
-
],
|
|
868
|
-
"layout": {
|
|
869
|
-
"visibility": "none"
|
|
870
|
-
},
|
|
871
|
-
"paint": {
|
|
872
|
-
"fill-extrusion-color": "#FFF8E1",
|
|
873
|
-
"fill-extrusion-height": ["step", ["zoom"], 0, 18, 3.2],
|
|
874
|
-
"fill-extrusion-base": 0,
|
|
875
|
-
"fill-extrusion-opacity": ["step", ["zoom"], 0, 18, 0.85]
|
|
876
|
-
}
|
|
877
|
-
},
|
|
1247
|
+
|
|
1248
|
+
|
|
878
1249
|
|
|
879
1250
|
{
|
|
880
1251
|
"id": "backofhouse-extrusion",
|
|
@@ -1170,37 +1541,12 @@
|
|
|
1170
1541
|
"circle-opacity": 1
|
|
1171
1542
|
}
|
|
1172
1543
|
},
|
|
1173
|
-
{
|
|
1174
|
-
"id": "poi-accessibility-icons",
|
|
1175
|
-
"type": "symbol",
|
|
1176
|
-
"source": "poi-data",
|
|
1177
|
-
"filter": ["==", ["get", "accessible"], true],
|
|
1178
|
-
"minzoom": 16.5,
|
|
1179
|
-
"layout": {
|
|
1180
|
-
"icon-image": "wheelchair-accessible",
|
|
1181
|
-
"icon-size": [
|
|
1182
|
-
"interpolate", ["exponential", 1.3], ["zoom"],
|
|
1183
|
-
14, 0.28,
|
|
1184
|
-
16, 0.4,
|
|
1185
|
-
18, 0.58,
|
|
1186
|
-
20, 0.85,
|
|
1187
|
-
22, 1.2
|
|
1188
|
-
],
|
|
1189
|
-
"icon-allow-overlap": false,
|
|
1190
|
-
"icon-padding": [
|
|
1191
|
-
"interpolate", ["linear"], ["zoom"],
|
|
1192
|
-
15, 8,
|
|
1193
|
-
17, 4,
|
|
1194
|
-
19, 2
|
|
1195
|
-
]
|
|
1196
|
-
}
|
|
1197
|
-
},
|
|
1198
1544
|
|
|
1199
1545
|
{
|
|
1200
1546
|
"id": "poi-destination-circles",
|
|
1201
1547
|
"type": "circle",
|
|
1202
1548
|
"source": "poi-data",
|
|
1203
|
-
"filter": ["
|
|
1549
|
+
"filter": ["==", ["get", "poiType"], "destination"],
|
|
1204
1550
|
"minzoom": 16.5,
|
|
1205
1551
|
"paint": {
|
|
1206
1552
|
"circle-radius": [
|
|
@@ -1217,36 +1563,6 @@
|
|
|
1217
1563
|
}
|
|
1218
1564
|
},
|
|
1219
1565
|
|
|
1220
|
-
{
|
|
1221
|
-
"id": "poi-destination-icons",
|
|
1222
|
-
"type": "symbol",
|
|
1223
|
-
"source": "poi-data",
|
|
1224
|
-
"filter": ["all", ["==", ["get", "poiType"], "destination"], ["has", "iconId"]],
|
|
1225
|
-
"minzoom": 16.5,
|
|
1226
|
-
"layout": {
|
|
1227
|
-
"symbol-sort-key": ["get", "rank"],
|
|
1228
|
-
"icon-image": ["get", "iconId"],
|
|
1229
|
-
"icon-size": [
|
|
1230
|
-
"interpolate", ["exponential", 1.3], ["zoom"],
|
|
1231
|
-
14, 0.28,
|
|
1232
|
-
16, 0.4,
|
|
1233
|
-
18, 0.58,
|
|
1234
|
-
20, 0.85,
|
|
1235
|
-
22, 1.2
|
|
1236
|
-
],
|
|
1237
|
-
"icon-allow-overlap": false,
|
|
1238
|
-
"icon-padding": [
|
|
1239
|
-
"interpolate", ["linear"], ["zoom"],
|
|
1240
|
-
15, 8,
|
|
1241
|
-
17, 4,
|
|
1242
|
-
19, 2
|
|
1243
|
-
],
|
|
1244
|
-
"icon-optional": false,
|
|
1245
|
-
"icon-rotation-alignment": "viewport",
|
|
1246
|
-
"icon-pitch-alignment": "viewport"
|
|
1247
|
-
}
|
|
1248
|
-
},
|
|
1249
|
-
|
|
1250
1566
|
{
|
|
1251
1567
|
"id": "poi-destination-labels",
|
|
1252
1568
|
"type": "symbol",
|
|
@@ -1254,8 +1570,7 @@
|
|
|
1254
1570
|
"filter": [
|
|
1255
1571
|
"all",
|
|
1256
1572
|
["==", ["get", "poiType"], "destination"],
|
|
1257
|
-
["==", ["get", "showLabel"], true]
|
|
1258
|
-
["!", ["has", "iconId"]]
|
|
1573
|
+
["==", ["get", "showLabel"], true]
|
|
1259
1574
|
],
|
|
1260
1575
|
"minzoom": 16.5,
|
|
1261
1576
|
"layout": {
|
|
@@ -1267,8 +1582,8 @@
|
|
|
1267
1582
|
18, 20,
|
|
1268
1583
|
20, 23
|
|
1269
1584
|
],
|
|
1270
|
-
"text-offset": [0, -0.9],
|
|
1271
|
-
"text-anchor": "bottom",
|
|
1585
|
+
"text-variable-anchor-offset": ["top", [0, 0.9], "right", [-0.9, 0], "bottom", [0, -0.9], "left", [0.9, 0]],
|
|
1586
|
+
"text-variable-anchor": ["top", "right" , "bottom", "left"],
|
|
1272
1587
|
"text-font": ["Noto Sans Bold"],
|
|
1273
1588
|
"text-max-width": 12,
|
|
1274
1589
|
"text-allow-overlap": false,
|
|
@@ -1278,18 +1593,23 @@
|
|
|
1278
1593
|
"paint": {
|
|
1279
1594
|
"text-color": "#242930",
|
|
1280
1595
|
"text-halo-color": "#FFFFFF",
|
|
1281
|
-
"text-halo-width":
|
|
1282
|
-
"text-halo-blur":
|
|
1596
|
+
"text-halo-width": 2,
|
|
1597
|
+
"text-halo-blur": 0
|
|
1283
1598
|
}
|
|
1284
1599
|
},
|
|
1285
|
-
|
|
1286
|
-
{
|
|
1600
|
+
{
|
|
1287
1601
|
"id": "map-labels",
|
|
1288
1602
|
"type": "symbol",
|
|
1289
1603
|
"source": "map-labels-data",
|
|
1290
1604
|
"minzoom": 15.5,
|
|
1605
|
+
"filter": ["!", ["in", "Building", ["get", "name"]]],
|
|
1291
1606
|
"layout": {
|
|
1292
1607
|
"symbol-sort-key": 10,
|
|
1608
|
+
"icon-image": "map-label-bg",
|
|
1609
|
+
"icon-text-fit": "both",
|
|
1610
|
+
"icon-text-fit-padding": [2, 2, 2, 2],
|
|
1611
|
+
"icon-allow-overlap": false,
|
|
1612
|
+
"icon-ignore-placement": false,
|
|
1293
1613
|
"text-field": ["get", "name"],
|
|
1294
1614
|
"text-size": [
|
|
1295
1615
|
"interpolate", ["linear"], ["zoom"],
|
|
@@ -1302,16 +1622,55 @@
|
|
|
1302
1622
|
"text-letter-spacing": 0.04,
|
|
1303
1623
|
"text-max-width": 10,
|
|
1304
1624
|
"text-anchor": "center",
|
|
1305
|
-
|
|
1306
|
-
"text-rotation-alignment": "
|
|
1625
|
+
|
|
1626
|
+
"text-rotation-alignment": "viewport",
|
|
1307
1627
|
"text-allow-overlap": false,
|
|
1308
1628
|
"text-padding": 4
|
|
1309
1629
|
},
|
|
1310
1630
|
"paint": {
|
|
1311
|
-
"text-color": "#
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1631
|
+
"text-color": "#ffffff"
|
|
1632
|
+
}
|
|
1633
|
+
},
|
|
1634
|
+
{
|
|
1635
|
+
"id": "map-labels-buildings",
|
|
1636
|
+
"type": "symbol",
|
|
1637
|
+
"source": "map-labels-data",
|
|
1638
|
+
"minzoom": 15.5,
|
|
1639
|
+
"filter": [
|
|
1640
|
+
"all",
|
|
1641
|
+
["in", "Building", ["get", "name"]]
|
|
1642
|
+
],
|
|
1643
|
+
"layout": {
|
|
1644
|
+
"symbol-sort-key": 10,
|
|
1645
|
+
"icon-image": "map-label-bg",
|
|
1646
|
+
"icon-text-fit": "both",
|
|
1647
|
+
"icon-text-fit-padding": [2, 2, 2, 2],
|
|
1648
|
+
"icon-allow-overlap": false,
|
|
1649
|
+
"icon-ignore-placement": false,
|
|
1650
|
+
"text-field": [
|
|
1651
|
+
"format",
|
|
1652
|
+
"\uea40", {"text-font": ["literal", ["Material Icons"]]},
|
|
1653
|
+
|
|
1654
|
+
["slice", ["get", "name"], 8, 10], {}
|
|
1655
|
+
],
|
|
1656
|
+
"text-size": [
|
|
1657
|
+
"interpolate", ["linear"], ["zoom"],
|
|
1658
|
+
15.5, 14,
|
|
1659
|
+
16.5, 16,
|
|
1660
|
+
18, 18,
|
|
1661
|
+
20, 20
|
|
1662
|
+
],
|
|
1663
|
+
"text-font": ["Noto Sans Bold"],
|
|
1664
|
+
"text-letter-spacing": 0.04,
|
|
1665
|
+
"text-max-width": 10,
|
|
1666
|
+
"text-anchor": "center",
|
|
1667
|
+
|
|
1668
|
+
"text-rotation-alignment": "viewport",
|
|
1669
|
+
"text-allow-overlap": false,
|
|
1670
|
+
"text-padding": 4
|
|
1671
|
+
},
|
|
1672
|
+
"paint": {
|
|
1673
|
+
"text-color": "#ffffff"
|
|
1315
1674
|
}
|
|
1316
1675
|
},
|
|
1317
1676
|
|
|
@@ -1319,16 +1678,7 @@
|
|
|
1319
1678
|
"id": "poi-entrance-exit-icons",
|
|
1320
1679
|
"type": "symbol",
|
|
1321
1680
|
"source": "poi-data",
|
|
1322
|
-
"filter": [
|
|
1323
|
-
"all",
|
|
1324
|
-
["==", ["get", "poiType"], "amenity"],
|
|
1325
|
-
[
|
|
1326
|
-
"any",
|
|
1327
|
-
["!=", ["index-of", "entrance", ["get", "keywords"]], -1],
|
|
1328
|
-
["!=", ["index-of", "exit", ["get", "keywords"]], -1],
|
|
1329
|
-
["!=", ["index-of", "door", ["get", "keywords"]], -1]
|
|
1330
|
-
]
|
|
1331
|
-
],
|
|
1681
|
+
"filter": ["==", ["get", "amenityCategory"], "entrance"],
|
|
1332
1682
|
"minzoom": 15,
|
|
1333
1683
|
"layout": {
|
|
1334
1684
|
"symbol-sort-key": ["get", "rank"],
|
|
@@ -1382,15 +1732,7 @@
|
|
|
1382
1732
|
"id": "poi-parking-icons",
|
|
1383
1733
|
"type": "symbol",
|
|
1384
1734
|
"source": "poi-data",
|
|
1385
|
-
"filter": [
|
|
1386
|
-
"all",
|
|
1387
|
-
["==", ["get", "poiType"], "amenity"],
|
|
1388
|
-
[
|
|
1389
|
-
"any",
|
|
1390
|
-
["!=", ["index-of", "parking", ["get", "keywords"]], -1],
|
|
1391
|
-
["!=", ["index-of", "park", ["get", "keywords"]], -1]
|
|
1392
|
-
]
|
|
1393
|
-
],
|
|
1735
|
+
"filter": ["==", ["get", "amenityCategory"], "parking"],
|
|
1394
1736
|
"minzoom": 14,
|
|
1395
1737
|
"layout": {
|
|
1396
1738
|
"symbol-sort-key": ["get", "rank"],
|
|
@@ -1440,18 +1782,121 @@
|
|
|
1440
1782
|
"icon-translate-anchor": "viewport"
|
|
1441
1783
|
}
|
|
1442
1784
|
},
|
|
1785
|
+
{
|
|
1786
|
+
"id": "poi-bus-icons",
|
|
1787
|
+
"type": "symbol",
|
|
1788
|
+
"source": "poi-data",
|
|
1789
|
+
"filter": ["==", ["get", "amenityCategory"], "bus"],
|
|
1790
|
+
"minzoom": 14,
|
|
1791
|
+
"layout": {
|
|
1792
|
+
"symbol-sort-key": ["get", "rank"],
|
|
1793
|
+
"icon-image": ["get", "iconId"],
|
|
1794
|
+
"icon-size": [
|
|
1795
|
+
"interpolate", ["exponential", 1.3], ["zoom"],
|
|
1796
|
+
14, 0.28,
|
|
1797
|
+
16, 0.4,
|
|
1798
|
+
18, 0.58,
|
|
1799
|
+
20, 0.85,
|
|
1800
|
+
22, 1.2
|
|
1801
|
+
],
|
|
1802
|
+
"icon-allow-overlap": false,
|
|
1803
|
+
"icon-padding": [
|
|
1804
|
+
"interpolate", ["linear"], ["zoom"],
|
|
1805
|
+
15, 8,
|
|
1806
|
+
17, 4,
|
|
1807
|
+
19, 2
|
|
1808
|
+
],
|
|
1809
|
+
"icon-optional": false,
|
|
1810
|
+
"icon-rotation-alignment": "viewport",
|
|
1811
|
+
"icon-pitch-alignment": "viewport",
|
|
1812
|
+
|
|
1813
|
+
"text-field": ["get", "name"],
|
|
1814
|
+
"text-size": [
|
|
1815
|
+
"interpolate", ["linear"], ["zoom"],
|
|
1816
|
+
16, ["case", ["!=", ["coalesce", ["get", "iconId"], ""], ""], 0, 17],
|
|
1817
|
+
19, ["case", ["!=", ["coalesce", ["get", "iconId"], ""], ""], 0, 19],
|
|
1818
|
+
20, ["case", ["!=", ["coalesce", ["get", "iconId"], ""], ""], 0, 22]
|
|
1819
|
+
],
|
|
1820
|
+
"text-offset": [0, 1.3],
|
|
1821
|
+
"text-anchor": "top",
|
|
1822
|
+
"text-optional": true,
|
|
1823
|
+
"text-padding": 4,
|
|
1824
|
+
"text-font": ["Noto Sans Bold"],
|
|
1825
|
+
"text-rotation-alignment": "viewport"
|
|
1826
|
+
},
|
|
1827
|
+
"paint": {
|
|
1828
|
+
"icon-halo-color": "#FFFFFF",
|
|
1829
|
+
"icon-halo-width": 1.5,
|
|
1830
|
+
"icon-halo-blur": 0.5,
|
|
1831
|
+
"text-color": "#242930",
|
|
1832
|
+
"text-halo-color": "#FFFFFF",
|
|
1833
|
+
"text-halo-width": 1.5,
|
|
1834
|
+
"text-halo-blur": 1,
|
|
1835
|
+
"icon-translate": [0, -20],
|
|
1836
|
+
"icon-translate-anchor": "viewport"
|
|
1837
|
+
}
|
|
1838
|
+
},
|
|
1839
|
+
{
|
|
1840
|
+
"id": "poi-connector-icons",
|
|
1841
|
+
"type": "symbol",
|
|
1842
|
+
"source": "poi-data",
|
|
1843
|
+
"filter": ["==", ["get", "amenityCategory"], "connector"],
|
|
1844
|
+
"minzoom": 16.5,
|
|
1845
|
+
"layout": {
|
|
1846
|
+
"symbol-sort-key": ["get", "rank"],
|
|
1847
|
+
"icon-image": ["get", "iconId"],
|
|
1848
|
+
"icon-size": [
|
|
1849
|
+
"interpolate", ["exponential", 1.3], ["zoom"],
|
|
1850
|
+
14, 0.28,
|
|
1851
|
+
16, 0.4,
|
|
1852
|
+
18, 0.58,
|
|
1853
|
+
20, 0.85,
|
|
1854
|
+
22, 1.2
|
|
1855
|
+
],
|
|
1856
|
+
"icon-allow-overlap": false,
|
|
1857
|
+
"icon-padding": [
|
|
1858
|
+
"interpolate", ["linear"], ["zoom"],
|
|
1859
|
+
15, 8,
|
|
1860
|
+
17, 4,
|
|
1861
|
+
19, 2
|
|
1862
|
+
],
|
|
1863
|
+
"icon-optional": false,
|
|
1864
|
+
"icon-rotation-alignment": "viewport",
|
|
1865
|
+
"icon-pitch-alignment": "viewport",
|
|
1866
|
+
|
|
1867
|
+
"text-field": ["get", "name"],
|
|
1868
|
+
"text-size": [
|
|
1869
|
+
"interpolate", ["linear"], ["zoom"],
|
|
1870
|
+
16, ["case", ["!=", ["coalesce", ["get", "iconId"], ""], ""], 0, 17],
|
|
1871
|
+
19, ["case", ["!=", ["coalesce", ["get", "iconId"], ""], ""], 0, 19],
|
|
1872
|
+
20, ["case", ["!=", ["coalesce", ["get", "iconId"], ""], ""], 0, 22]
|
|
1873
|
+
],
|
|
1874
|
+
"text-offset": [0, 1.3],
|
|
1875
|
+
"text-anchor": "top",
|
|
1876
|
+
"text-optional": true,
|
|
1877
|
+
"text-padding": 4,
|
|
1878
|
+
"text-font": ["Noto Sans Bold"],
|
|
1879
|
+
"text-rotation-alignment": "viewport"
|
|
1880
|
+
},
|
|
1881
|
+
"paint": {
|
|
1882
|
+
"icon-halo-color": "#FFFFFF",
|
|
1883
|
+
"icon-halo-width": 1.5,
|
|
1884
|
+
"icon-halo-blur": 0.5,
|
|
1885
|
+
"text-color": "#242930",
|
|
1886
|
+
"text-halo-color": "#FFFFFF",
|
|
1887
|
+
"text-halo-width": 1.5,
|
|
1888
|
+
"text-halo-blur": 1,
|
|
1889
|
+
"icon-translate": [0, -20],
|
|
1890
|
+
"icon-translate-anchor": "viewport"
|
|
1891
|
+
}
|
|
1892
|
+
},
|
|
1443
1893
|
{
|
|
1444
1894
|
"id": "poi-other-amenity-icons",
|
|
1445
1895
|
"type": "symbol",
|
|
1446
1896
|
"source": "poi-data",
|
|
1447
1897
|
"filter": [
|
|
1448
1898
|
"all",
|
|
1449
|
-
["==", ["get", "
|
|
1450
|
-
["==", ["index-of", "entrance", ["get", "keywords"]], -1],
|
|
1451
|
-
["==", ["index-of", "exit", ["get", "keywords"]], -1],
|
|
1452
|
-
["==", ["index-of", "door", ["get", "keywords"]], -1],
|
|
1453
|
-
["==", ["index-of", "parking", ["get", "keywords"]], -1],
|
|
1454
|
-
["==", ["index-of", "park", ["get", "keywords"]], -1],
|
|
1899
|
+
["==", ["get", "amenityCategory"], "other"],
|
|
1455
1900
|
["<=", ["get", "rank"], ["step", ["zoom"], 0, 17, 2, 18, 3]]
|
|
1456
1901
|
],
|
|
1457
1902
|
"minzoom": 16.5,
|
|
@@ -1524,14 +1969,14 @@
|
|
|
1524
1969
|
"text-font": ["Noto Sans Bold"],
|
|
1525
1970
|
"text-anchor": "bottom",
|
|
1526
1971
|
"text-offset": [0, -0.45],
|
|
1527
|
-
"text-rotate": ["get", "heading"],
|
|
1972
|
+
"text-rotate": ["-", ["get", "heading"], 180],
|
|
1528
1973
|
"text-rotation-alignment": "map",
|
|
1529
1974
|
"text-pitch-alignment": "map",
|
|
1530
1975
|
"text-allow-overlap": true,
|
|
1531
1976
|
"text-ignore-placement": true
|
|
1532
1977
|
},
|
|
1533
1978
|
"paint": {
|
|
1534
|
-
"text-color": "#
|
|
1979
|
+
"text-color": "#E31C3D",
|
|
1535
1980
|
"text-halo-color": "#162e51",
|
|
1536
1981
|
"text-halo-width": 2.5,
|
|
1537
1982
|
"text-opacity": 0.9
|
|
@@ -1550,31 +1995,11 @@
|
|
|
1550
1995
|
18, 18,
|
|
1551
1996
|
20, 24
|
|
1552
1997
|
],
|
|
1553
|
-
"circle-color": "#
|
|
1998
|
+
"circle-color": "#E31C3D",
|
|
1554
1999
|
"circle-opacity": 0.25,
|
|
1555
2000
|
"circle-pitch-alignment": "map"
|
|
1556
2001
|
}
|
|
1557
2002
|
},
|
|
1558
|
-
{
|
|
1559
|
-
"id": "poi-you-are-here-dot",
|
|
1560
|
-
"type": "circle",
|
|
1561
|
-
"source": "poi-data",
|
|
1562
|
-
"filter": ["==", ["get", "isYouAreHere"], true],
|
|
1563
|
-
"minzoom": 16,
|
|
1564
|
-
"paint": {
|
|
1565
|
-
"circle-radius": [
|
|
1566
|
-
"interpolate", ["linear"], ["zoom"],
|
|
1567
|
-
16, 7,
|
|
1568
|
-
18, 9,
|
|
1569
|
-
20, 12
|
|
1570
|
-
],
|
|
1571
|
-
"circle-color": "#face00",
|
|
1572
|
-
"circle-opacity": 1,
|
|
1573
|
-
"circle-stroke-color": "#ffffff",
|
|
1574
|
-
"circle-stroke-width": 3,
|
|
1575
|
-
"circle-stroke-opacity": 1
|
|
1576
|
-
}
|
|
1577
|
-
},
|
|
1578
2003
|
{
|
|
1579
2004
|
"id": "poi-you-are-here",
|
|
1580
2005
|
"type": "symbol",
|
|
@@ -1582,14 +2007,29 @@
|
|
|
1582
2007
|
"filter": ["==", ["get", "isYouAreHere"], true],
|
|
1583
2008
|
"minzoom": 16,
|
|
1584
2009
|
"layout": {
|
|
2010
|
+
"icon-image": "YouAreHereKiosk",
|
|
2011
|
+
"icon-anchor": "bottom",
|
|
2012
|
+
"icon-offset": [0, 0],
|
|
2013
|
+
"icon-allow-overlap": true,
|
|
2014
|
+
"icon-ignore-placement": true,
|
|
2015
|
+
"icon-size": [
|
|
2016
|
+
"interpolate", ["linear"], ["zoom"],
|
|
2017
|
+
16, 2,
|
|
2018
|
+
18, 1,
|
|
2019
|
+
20, 1
|
|
2020
|
+
],
|
|
1585
2021
|
"text-field": ["get", "name"],
|
|
1586
2022
|
"text-size": [
|
|
1587
2023
|
"interpolate", ["linear"], ["zoom"],
|
|
1588
|
-
16,
|
|
2024
|
+
16, 20,
|
|
1589
2025
|
18, 19,
|
|
1590
2026
|
20, 22
|
|
1591
2027
|
],
|
|
1592
|
-
"text-offset": [
|
|
2028
|
+
"text-offset": [
|
|
2029
|
+
"interpolate", ["linear"], ["zoom"],
|
|
2030
|
+
16, ["literal", [0, -4]],
|
|
2031
|
+
18, ["literal", [0, -2.5]]
|
|
2032
|
+
],
|
|
1593
2033
|
"text-anchor": "bottom",
|
|
1594
2034
|
"text-font": ["Noto Sans Bold"],
|
|
1595
2035
|
"text-allow-overlap": true,
|
|
@@ -1597,12 +2037,13 @@
|
|
|
1597
2037
|
"text-optional": false
|
|
1598
2038
|
},
|
|
1599
2039
|
"paint": {
|
|
1600
|
-
"text-color": "#
|
|
1601
|
-
"text-halo-color": "#
|
|
2040
|
+
"text-color": "#E31C3D",
|
|
2041
|
+
"text-halo-color": "#ffffff",
|
|
1602
2042
|
"text-halo-width": 2.5,
|
|
1603
|
-
"text-halo-blur": 0.5
|
|
1604
|
-
}
|
|
2043
|
+
"text-halo-blur": 0.5
|
|
2044
|
+
}
|
|
1605
2045
|
},
|
|
2046
|
+
|
|
1606
2047
|
{
|
|
1607
2048
|
"id": "poi-highlight-ring",
|
|
1608
2049
|
"type": "circle",
|