-
Notifications
You must be signed in to change notification settings - Fork 0
/
scene.yaml
1754 lines (1661 loc) · 75.6 KB
/
scene.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# Author: Geraldine Sarmiento
# Tangram Blocks
# https://tangrams.github.io/blocks/
# Patricio Gonzalez Vivo
cameras:
camera1:
type: perspective
global:
# default order for basemap features
feature_order: function() { return feature.sort_rank; }
feature_order_down_1: function() { return feature.sort_rank - 1; }
building_extrude_height: |
function () { return feature.height > 16 || $zoom >= 16; }
# Sign up for a Mapzen API key to enjoy higher rate limits
# https://mapzen.com/documentation/overview/#developer-accounts-and-api-keys
sdk_api_key: '3eqm2_bfTNGZ85ar20fVyA' # set this value to your Mapzen API key
black_color: [1.000,1.000,1.000]
dark_color: [0.750,0.750,0.750]
mid_color: [0.500,0.500,0.500]
midlight_color: [0.460,0.460,0.460]
extralight_color: [0.410,0.410,0.410]
light_color: [0.365,0.365,0.365]
lighter_color: [0.275,0.275,0.275]
lightest_color: [0.220,0.220,0.220]
ultralight_color: [0.195,0.195,0.195]
offwhite_color: [0.175,0.175,0.175]
white_color: [0.000,0.000,0.000]
text_font_family: 'Open Sans'
roads_text_fill: [0.800,0.800,0.800]
roads_text_stroke: [0.110,0.110,0.110]
#ux/ui
ux_language: false # l10n language code, trusting OSM in v0.10 tiles, fixed in v1.0 tiles
ux_language_fallback: false # l10n language code, trusting OSM in v0.10 tiles, fixed in v1.0 tiles
ux_language_text_source: |
function() {
// if a ux_langauge has been defined use that, else if there is feature name in the fallback_ux_language then use that, else use the feature's default name in the local language
return (global.ux_language && feature['name:'+global.ux_language]) || (global.ux_language_fallback && feature['name:'+global.ux_language_fallback]) || feature.name;
}
ux_language_text_source_left: |
function() {
// if a ux_langauge has been defined use that, else if there is feature name in the fallback_ux_language then use that, else use the feature's default name in the local language
return (global.ux_language && feature['name:left:'+global.ux_language]) || (global.ux_language_fallback && feature['name:left:'+global.ux_language_fallback]) || feature['name:left'];
}
ux_language_text_source_right: |
function() {
// if a ux_langauge has been defined use that, else if there is feature name in the fallback_ux_language then use that, else use the feature's default name in the local language
return (global.ux_language && feature['name:right:'+global.ux_language]) || (global.ux_language_fallback && feature['name:right:'+global.ux_language_fallback]) || feature['name:right'];
}
ux_language_text_source_boundary_lines_left_right:
left: global.ux_language_text_source_left
right: global.ux_language_text_source_right
ux_language_text_source_boundary_lines: |
function() {
var right = (global.ux_language && feature['name:right:'+global.ux_language]) || (global.ux_language_fallback && feature['name:right:'+global.ux_language_fallback]) || feature['name:right'];
var left = (global.ux_language && feature['name:left:'+global.ux_language]) || (global.ux_language_fallback && feature['name:left:'+global.ux_language_fallback]) || feature['name:left'];
if( right && left ) {
//if( right.includes(' ') || left.includes(' ') ) {
return left + " - " + right;
//} else {
// return right + '\n' + left;
//}
} else {
return (global.ux_language && feature['name:'+global.ux_language]) || (global.ux_language_fallback && feature['name:'+global.ux_language_fallback]) || feature.name;
}
}
ux_language_text_source_short: |
function() {
return (global.ux_language && feature['name:short:'+global.ux_language]) || (global.ux_language_fallback && feature['name:short:'+global.ux_language_fallback]) || feature['name:short'];
}
ux_language_text_source_short_proxy_name: |
function() {
var name = (global.ux_language && feature['name:'+global.ux_language]) || (global.ux_language_fallback && feature['name:'+global.ux_language_fallback]) || feature['name'] || '';
var short = (global.ux_language && feature['name:short:'+global.ux_language]) || (global.ux_language_fallback && feature['name:short:'+global.ux_language_fallback]) || feature['name:short'];
return short ? name : '';
}
ux_language_text_source_abbreviation: |
function() {
var name = (global.ux_language && feature['name:'+global.ux_language]) || (global.ux_language_fallback && feature['name:'+global.ux_language_fallback]) || feature['name'] || '';
var abbrev = (global.ux_language && feature['name:abbreviation:'+global.ux_language]) || (global.ux_language_fallback && feature['name:abbreviation:'+global.ux_language_fallback]) || feature['name:abbreviation'];
return abbrev || name;
}
ux_language_text_source_iata: |
function() {
var name = (global.ux_language && feature['name:'+global.ux_language]) || (global.ux_language_fallback && feature['name:'+global.ux_language_fallback]) || feature['name'];
if(feature.iata) {
if (name) {
return name + ' (' + feature.iata + ')';
}
else {
return feature.iata;
}
} else {
return name;
}
}
ux_language_text_source_ocean: |
function() {
var name = (global.ux_language && feature['name:'+global.ux_language]) || (global.ux_language_fallback && feature['name:'+global.ux_language_fallback]) || feature['name'] || '';
name = name.split(' ').join('\n');
return name.split('').join(' ');
}
ux_language_text_source_sea: |
function() {
var name = (global.ux_language && feature['name:'+global.ux_language]) || (global.ux_language_fallback && feature['name:'+global.ux_language_fallback]) || feature['name'] || '';
name = name.split(' ').join('\n');
return name.split('').join(' ');
}
ux_language_text_source_continent_stacked_only: |
function() {
var name = (global.ux_language && feature['name:'+global.ux_language]) || (global.ux_language_fallback && feature['name:'+global.ux_language_fallback]) || feature['name'] || '';
return name.split(' ').join('\n');
}
ux_language_text_source_continent: |
function() {
var name = (global.ux_language && feature['name:'+global.ux_language]) || (global.ux_language_fallback && feature['name:'+global.ux_language_fallback]) || feature['name'] || '';
name = name.split(' ').join('\n');
return name.split('').join(' ');
}
ux_language_text_source_road_ref_and_name: |
function() {
// if a ux_langauge has been defined use that, else if there is feature name in the fallback_ux_language then use that, else use the feature's default name in the local language
return (global.ux_language && feature['name:'+global.ux_language]) || (global.ux_language_fallback && feature['name:'+global.ux_language_fallback]) || feature.name;
/*
var name = (global.ux_language && feature['name:'+global.ux_language]) || (global.ux_language_fallback && feature['name:'+global.ux_language_fallback]) || feature['name'];
if(feature.ref && name) {
return (feature.ref + ' ' + name);
} else {
return name;
}
*/
}
ux_language_text_source_road_ref_and_name_short: |
function() {
// if a ux_langauge has been defined use that, else if there is feature name in the fallback_ux_language then use that, else use the feature's default name in the local language
return (global.ux_language && feature['name:'+global.ux_language]) || (global.ux_language_fallback && feature['name:'+global.ux_language_fallback]) || feature.name;
/*
var name = (global.ux_language && feature['name:'+global.ux_language]) || (global.ux_language_fallback && feature['name:'+global.ux_language_fallback]) || feature['name'];
if (feature.ref && (feature.ref.length < 6) && name) {
return feature.ref + ' ' + name;
} else {
return name;
}
*/
}
ux_language_text_source_piste_advanced: |
function() {
var name = (global.ux_language && feature['name:'+global.ux_language]) || (global.ux_language_fallback && feature['name:'+global.ux_language_fallback]) || feature['name'];
return name ? ('◆ ' + name) : '◆';
}
ux_language_text_source_piste_expert: |
function() {
var name = (global.ux_language && feature['name:'+global.ux_language]) || (global.ux_language_fallback && feature['name:'+global.ux_language_fallback]) || feature['name'];
return name ? ('◆◆ ' + name) : '◆◆';
}
ux_language_text_source_building_and_address: |
function() {
var name = (global.ux_language && feature['name:'+global.ux_language]) || (global.ux_language_fallback && feature['name:'+global.ux_language_fallback]) || feature['name'];
if (name && feature.addr_housenumber) {
return name + '\n' + feature.addr_housenumber;
} else {
return name;
}
}
# Fonts
fonts:
Orbitron:
- weight: normal # Regular
# url: https://fonts.gstatic.com/s/orbitron/v7/94ug0rEgQO_WuI_xKJMFc3YhjbSpvc47ee6xR_80Hnw.woff
url: fonts/94ug0rEgQO_WuI_xKJMFc3YhjbSpvc47ee6xR_80Hnw.woff
Cairo:
- weight: normal # Regular
# url: https://fonts.gstatic.com/s/cairo/v1/ZA_4ooaF_Dfdn26t_IoQOaCWcynf_cDxXwCLxiixG1c.woff
url: fonts/ZA_4ooaF_Dfdn26t_IoQOaCWcynf_cDxXwCLxiixG1c.woff
Aldrich:
- weight: normal # Regular
# url: https://fonts.gstatic.com/s/aldrich/v6/VWXaIPGrUapL_Y2vGs0lKALUuEpTyoUstqEm5AMlJo4.woff
url: fonts/VWXaIPGrUapL_Y2vGs0lKALUuEpTyoUstqEm5AMlJo4.woff
Open Sans:
- weight: 300 # Light
url: fonts/OpenSans-Light.woff
- weight: normal # Regular
url: fonts/OpenSans-Regular.woff
- weight: normal # Regular
style: italic
url: fonts/OpenSans-Italic.woff
- weight: 600 # Semi Bold
url: fonts/OpenSans-Semibold.woff
- weight: 600 # Semi Bold
style: italic
url: fonts/OpenSans-SemiboldItalic.woff
- weight: bold
url: fonts/OpenSans-Bold.woff
textures:
palette:
url: images/ramp2.png
scene:
background:
color: [0.100,0.100,0.100]
sources:
# mapzen:
# type: MVT
# # url: https://tile.nextzen.org/tilezen/vector/v1/512/all/{z}/{x}/{y}.mvt
# url: https://xyz.api.here.com/tiles/osmbase/512/all/{z}/{x}/{y}.mvt
# url_params:
# api_key: JJiaZE63TZObzPrmx0TQkw
# tile_size: 512
# max_zoom: 16
mapzen:
type: MVT
url: https://tile.nextzen.org/tilezen/vector/v1/512/all/{z}/{x}/{y}.mvt
url_params:
api_key: global.sdk_api_key
rasters: [normals-elevation]
tile_size: 512
max_zoom: 15
normals-elevation:
type: Raster
url: https://tile.nextzen.org/tilezen/terrain/v1/512/normal/{z}/{x}/{y}.png
url_params:
api_key: global.sdk_api_key
tile_size: 512
max_zoom: 14
xyz-osm:
type: MVT
url: https://xyz.api.here.com/tiles/osmbase/256/all/{z}/{x}/{y}.mvt
layers:
earth:
data: { source: mapzen, layer: earth }
draw:
polygons:
style: terrain-pattern-earth
order: global.feature_order
color: [0.100,0.100,0.100] #color of stripes
water:
data: { source: mapzen, layer: water }
draw:
polygons:
style: terrain-pattern-water
order: global.feature_order
color: [0.100,0.100,0.100]
lakes:
filter:
all:
- kind: [ocean, lake, water, riverbank, reservoir, swimming_pool]
any:
# limit show smaller landuse areas to higher zooms
- { $zoom: [1], area: { min: 10000000000 } }
- { $zoom: [2], area: { min: 7000000000 } }
# some weird natural earth scale set transition
- { $zoom: [3], area: { min: 5000000000 } }
- { $zoom: [4], area: { min: 300000000 } }
- { $zoom: [5], area: { min: 50000000 } }
- { $zoom: [6], area: { min: 50000000 } }
- { $zoom: [7], area: { min: 50000000 } }
- { $zoom: [8], area: { min: 50000000 } }
- { $zoom: [9], area: { min: 15000000 } }
- { $zoom: [10], area: { min: 4000000 } }
- { $zoom: [11], area: { min: 1000000 } }
- { $zoom: [12], area: { min: 250000 } }
- { $zoom: [13], area: { min: 150000 } }
- { $zoom: [14], area: { min: 40000 } }
- { $zoom: { min: 15 } }
draw:
polygons:
color: [0.100,0.100,0.100]
other-water-areas:
filter: { not: { kind: [ocean, lake, water, reservoir] }, $zoom: { min: 11 }, area: { min: 100 } }
draw:
polygons:
color: [0.100,0.100,0.100]
roads:
data: { source: mapzen, layer: roads }
draw:
lines:
visible: true
width: 1px
order: global.feature_order
# but give them all the same outline
outline:
order: 352
text-blend-order:
text_source: global.ux_language_text_source
visible: false # labels are enabled by each layer below
font:
family: global.text_font_family
weight: normal
fill: global.roads_text_fill
early:
filter: { $zoom: { max: 15 } }
draw:
lines:
outline:
order: global.feature_order
bridges-tunnels:
filter: { any: [is_bridge: true, is_tunnel: true] }
draw:
lines:
#cap: butt
outline:
# except bridges and tunnels, their outlines should also self-sort
order: global.feature_order
# default outlines starting at zoom 16
default-outline-width:
filter: { $zoom: { min: 16 } }
draw:
lines:
outline:
width: function () { return 3/16 * Math.log($zoom); }
natural_earth_highways:
filter: { $zoom: { min: 5, max: 8 } }
draw:
lines:
color: [[5, global.mid_color], [6, global.black_color]]
width: [[5, 0.5px], [6, 0.5px], [7, 0.75px]]
outline:
color: global.mid_color
width: [[9, 0px], [10, 0px], [12, 1px], [16, 2px]]
major_road:
filter: { kind: major_road }
draw:
lines:
color: [[5, global.light_color], [7, global.mid_color]]
width: [[5, 0.25px], [7, 0.5px]]
# outline:
# width: [[8, 0.0px], [9, 0.0px], [11, .5px], [16, .75px]]
minor_road:
filter: { kind: minor_road }
draw:
lines:
color: global.offwhite_color
width: 0.5px
# outline:
# width: [[12, 0px], [14, .5px], [17, 1px]]
ferry:
filter: { kind: ferry }
draw:
lines:
visible: false
# color: global.light_color
# width: 0.5px
# outline:
# width: 0px
highway:
filter: { kind: highway, $zoom: { min: 8 } }
draw:
lines:
color: [[8, global.black_color], [13, global.black_color], [14, global.white_color]]
width: [[8, 1px], [13, 1px], [14, 0.1px], [15, 1.5px], [17, 8px], [18, 10m]]
outline:
color: [[8, global.white_color], [12, global.white_color], [13, global.black_color]]
width: [[8, 0px], [13, 0px], [14, 1px]]
link:
filter: { is_link: true } # on- and off-ramps, etc
draw:
lines:
color: [[9, global.mid_color], [13, global.mid_color], [14, global.white_color]]
width: [[9, 0px], [13, 0.75px], [14, 0.1px], [17, 4px], [18, 5m]]
outline:
color: [[9, global.white_color], [12, global.white_color], [13, global.mid_color], [15, global.black_color]]
width: [[9, 0px], [13, 0px], [14, 0.4px], [17, 1px]]
early_link:
filter: { $zoom: {min: 13, max: 15} }
draw:
lines:
order: 352
tunnel-link:
filter: {is_tunnel: true, $zoom: { min: 13 } }
draw:
lines:
color: [[13, global.light_color], [14, global.ultralight_color]]
outline:
color: [[12, global.white_color], [13, global.light_color]]
tunnel:
filter: { is_tunnel: true, $zoom: { min: 13 } }
draw:
lines:
color: [[13, global.light_color], [14, global.ultralight_color]]
outline:
color: [[12, global.white_color], [13, global.light_color]]
highway_bridge:
filter: { is_bridge: true }
draw:
lines:
cap: round
outline:
cap: butt
labels-highway-z14:
filter: { $zoom: { min: 14 } }
draw:
text-blend-order:
priority: 50
text_source: global.ux_language_text_source
visible: true
font:
weight: 600
size: [[15,12px],[20,14px]]
stroke: { color: global.roads_text_stroke, width: 6px }
major_road:
filter: { kind: major_road, $zoom: { min: 8 } }
# default style
draw:
lines:
color: [[8, global.black_color], [13, global.black_color], [17, global.white_color]]
width: [[13, 1px], [16, 1px], [17, 3px]]
outline:
width: [[12, 0px], [13, 0.5px], [15, 1px]]
trunk_primary:
filter: { kind_detail: [trunk, primary] }
draw:
lines:
color: [[8, global.midlight_color], [12, global.mid_color], [13, global.black_color], [14, global.white_color]]
width: [[8, 0.5px], [11, 0.5px], [13, 1px], [14, 0.1px], [16, 2px], [17, 8px], [18, 10m]]
outline:
color: [[8, global.white_color], [12, global.white_color], [13, global.black_color]]
width: [[8, 0px], [13, 0px], [14, 0.75px], [16, 1px]]
early:
filter: { $zoom: { max: 16 } }
draw:
lines:
order: 352
outline:
order: function() { return feature.sort_rank + 2; }
primary:
filter: { kind: [primary] }
draw:
lines:
outline:
order: function() { return feature.sort_rank + 1; }
routes:
filter: { ref: true }
draw:
lines:
color: [[8, global.midlight_color], [12, global.mid_color], [13, global.black_color], [14, global.white_color]]
width: [[9, 0.5px], [13, 1px], [14, 0.1px], [15, 1.25px], [16, 2px], [17, 8px], [18, 10m]]
outline:
color: [[8, global.white_color], [12, global.white_color], [13, global.black_color]]
width: [[8, 0px], [13, 0px], [14, 0.75px], [15, 1px]]
early:
filter: { $zoom: { max: 16 } }
draw:
lines:
order: function() { return feature.sort_rank + 2; }
outline:
order: 353
tunnel:
filter: { is_tunnel: true, $zoom: { min: 13 } }
draw:
lines:
color: [[13, global.light_color], [14, global.ultralight_color]]
outline:
color: [[12, global.white_color], [13, global.light_color]]
labels-trunk_primary-route-z14:
filter: { $zoom: { min: 14 } }
draw:
text-blend-order:
priority: 51
visible: true
text_source: global.ux_language_text_source_road_ref_and_name
font:
weight: 600
size: [[15,12px],[20,14px]]
stroke: { color: global.roads_text_stroke, width: 4px }
labels-trunk-primary-z14:
filter: { $zoom: 14 }
draw:
text-blend-order:
priority: 51
text_source: global.ux_language_text_source
visible: true
font:
size: 10px
stroke: { color: global.roads_text_stroke, width: 3px }
labels-trunk-primary-z15:
filter: { $zoom: { min: 15 } }
draw:
text-blend-order:
priority: 51
text_source: global.ux_language_text_source_road_ref_and_name_short
visible: true
font:
size: [[15,13px],[18,14px]]
stroke: { color: global.roads_text_stroke, width: [[15, 4px], [17, 6px]] }
link:
filter: { is_link: true } # on- and off-ramps, etc
draw:
lines:
color: [[10, global.mid_color], [15, global.light_color], [16, global.white_color]]
width: [[10, 0.5px], [12, 0.5px], [15, 0.75px], [16, 1.75px], [17, 3px], [18, 5m]]
outline:
color: [[10, global.white_color], [15, global.mid_color], [16, global.black_color]]
width: [[10, 0px], [15, 0px], [16, 1px]]
tunnel:
filter: { is_tunnel: true, $zoom: { min: 13 } }
draw:
lines:
color: [[13, global.light_color], [14, global.ultralight_color]]
outline:
color: [[12, global.white_color], [13, global.light_color]]
secondary:
filter: { kind_detail: secondary }
draw:
lines:
color: [[10, global.lighter_color], [13, global.midlight_color], [15, global.dark_color], [16, global.white_color]]
width: [[10, 0.5px], [12, 0.5px], [14, 1px], [15, 1px], [16, 0.1px], [17, 7.5px], [18, 9m]]
outline:
color: [[10, global.white_color], [14, global.white_color], [15, global.black_color]]
width: [[10, 0px], [15, 0px], [16, 1px]]
early:
filter: { $zoom: { max: 16 } }
draw:
lines:
order: 352
outline:
order: 353 #function() { return feature.sort_rank + 2; }
routes:
filter: { ref: true, $zoom: { min: 12 } }
draw:
lines:
color: [[10, global.lighter_color], [13, global.mid_color], [15, global.black_color], [16, global.white_color]]
width: [[10, 0.5px], [13, 1px], [15, 1px], [16, 0.1px], [17, 7.5px], [18, 9m]]
outline:
color: [[10, global.white_color], [14, global.white_color], [15, global.black_color]]
width: [[10, 0px], [15, 0px], [16, 1px]]
early:
filter: { $zoom: { max: 15 } }
draw:
lines:
order: function() { return feature.sort_rank + 2; }
outline:
order: 353
tunnel:
filter: {is_tunnel: true, $zoom: { min: 13 } }
draw:
lines:
color: [[13, global.light_color], [15, global.light_color], [16, global.ultralight_color]]
outline:
color: [[13, global.white_color], [14, global.white_color], [15, global.light_color]]
labels-secondary-routes-z15-up:
filter: { $zoom: { min: 15 } }
draw:
text-blend-order:
priority: 56
visible: true
text_source: global.ux_language_text_source_road_ref_and_name_short
font:
weight: 600
size: [[13,10px],[15,13px],[18,14px]]
stroke: { color: global.roads_text_stroke, width: 4px }
labels-secondary:
filter: { $zoom: { min: 15 } }
draw:
text-blend-order:
priority: 56
visible: true
text_source: global.ux_language_text_source_road_ref_and_name_short
font:
size: [[15,13px],[18,14px]]
stroke: { color: global.roads_text_stroke, width: 4px }
tertiary:
filter: { kind_detail: [tertiary, tertiary_link] }
draw:
lines:
color: [[11, global.lighter_color], [15, global.dark_color], [16, global.white_color]]
width: [[11, 0.5px], [15, 1px], [16, 0.1px], [17, 6px], [18, 9m]]
outline:
color: [[11, global.white_color], [14, global.white_color], [15, global.black_color]]
width: [[11, 0px], [15, 0px], [16, 1px]]
early:
filter: { $zoom: { max: 15 } }
draw:
lines:
order: 352
outline:
order: function() { return feature.sort_rank + 3; }
routes:
filter: { ref: true, $zoom: { min: 12 } }
draw:
lines:
color: [[11, global.lighter_color], [15, global.dark_color], [16, global.white_color]]
width: [[11, 0.5px], [15, 1px], [16, 0.1px], [17, 6px], [18, 9m]]
outline:
color: [[11, global.white_color], [14, global.white_color], [15, global.black_color]]
width: [[11, 0px], [15, 0px], [16, 1px]]
early:
filter: { $zoom: { max: 15 } }
draw:
lines:
order: function() { return feature.sort_rank + 3; }
outline:
order: 353
tunnel:
filter: { is_tunnel: true, $zoom: { min: 13 } }
draw:
lines:
color: [[13, global.light_color], [15, global.light_color], [16, global.ultralight_color]]
outline:
color: [[13, global.white_color], [14, global.white_color], [15, global.light_color]]
link:
filter: { is_link: true } # on- and off-ramps, etc
draw:
lines:
color: [[14, global.light_color], [15, global.dark_color], [16, global.white_color]]
width: [[11, 0.0px], [15, 0.5px], [16, 0.1px], [18, 4.5m]]
outline:
color: [[11, global.white_color], [14, global.white_color], [15, global.black_color]]
width: [[11, 0px], [14, 0px], [16, 0.25px], [18, 1px]]
labels-tertiary:
filter: { $zoom: { min: 16 } }
draw:
text-blend-order:
priority: 57
visible: true
text_source: global.ux_language_text_source_road_ref_and_name_short
font:
size: [[15,10px],[18,14px]]
stroke: { color: global.roads_text_stroke, width: 5px }
minor_road:
filter: { kind: minor_road, not: { kind_detail: service }, $zoom: { min: 8 } }
draw:
lines:
color: [[11, global.ultralight_color], [14, global.mid_color], [16, global.white_color]]
width: [[11, 0.35px], [13, 0.5px], [14, 1px], [15, 1px], [16, 0.1px], [17, 4px], [18, 9m]]
outline:
color: [[15, global.mid_color], [17, global.black_color]]
width: [[11, 0px], [15, 0px], [16, 0.75px], [17, 1px]]
early:
filter: { $zoom: { max: 16 } }
draw:
lines:
order: 350
outline:
order: 351
# Is this junk code?
round:
filter: { $zoom: { min: 17 } }
draw:
lines:
cap: round
join: round
tunnel:
filter: {is_tunnel: true, $zoom: { min: 13 } }
draw:
lines:
color: [[13, global.light_color], [15, global.light_color], [16, global.ultralight_color]]
outline:
color: [[13, global.white_color], [14, global.white_color], [15, global.light_color]]
minor_road_bridge:
filter: { is_bridge: true }
draw:
lines:
cap: round
outline:
cap: butt
labels-minor_road:
filter: { $zoom: { min: 16 } }
draw:
text-blend-order:
priority: 59
visible: true
text_source: name
font:
size: [[15,10px],[18,14px]]
stroke: { color: global.roads_text_stroke, width: 4px }
service_road:
filter: { kind: minor_road, kind_detail: service, $zoom: { min: 13 } }
draw:
lines:
color: [[13, global.offwhite_color], [15, global.midlight_color], [16, global.white_color]]
width: [[13, 0px], [15, 0.75px], [16, 0.1px], [17, 2.5px], [18, 5m]]
outline:
color: [[13, global.white_color], [14, global.white_color], [15, global.mid_color], [18, global.black_color]]
width: [[13, 0px], [15, 0px], [16, 0.6px], [19, 1px]]
labels-service_road:
filter: { $zoom: { min: 17 } }
draw:
text-blend-order:
priority: 60
visible: true
text_source: name
font:
size: [[15,10px], [18,14px]]
stroke: { color: global.roads_text_stroke, width: 4px }
path:
filter:
all:
- kind: [path, portage_way]
not:
- kind_detail: [steps, track, pier]
draw:
lines:
color: global.mid_color
width: [[14, 0px], [16, 0.15px], [17, 2.5px], [20, 3m]]
early:
filter:
$zoom: { max: 15 }
draw:
lines:
order: 351
outline:
order: 350
pedestrian:
filter: { kind_detail: pedestrian }
draw:
lines:
color: global.mid_color
width: [[14, 0px], [16, 0.15px], [17, 2.5px], [20, 3m]]
footway:
filter: { kind_detail: footway }
draw:
lines:
color: global.mid_color
width: [[14, 0px], [16, 0.15px], [17, 2.5px], [20, 3m]]
bridge:
filter: { is_bridge: true }
draw:
lines:
cap: round
outline:
color: global.dark_color
cap: butt
bridge:
filter: { is_bridge: true }
draw:
lines:
cap: round
outline:
color: global.dark_color
cap: butt
labels-path:
filter: { $zoom: { min: 18 } }
draw:
text-blend-order:
priority: 61
visible: true
text_source: name
font:
size: 11px
stroke: { color: global.roads_text_stroke, width: 4px }
track:
filter: { kind: path, kind_detail: track }
draw:
lines:
color: global.mid_color
width: [[13, 0px], [16, 0.15px], [17, 2.5px], [20, 4m]]
bridge:
filter: { is_bridge: true }
draw:
lines:
cap: butt
color: global.offwhite_color
outline:
color: global.extralight_color
cap: butt
labels-track:
filter: { $zoom: { min: 18 } }
draw:
text-blend-order:
priority: 61
visible: true
text_source: name
font:
size: 11px
stroke: { color: global.roads_text_stroke, width: 4px }
steps:
filter:
all:
- kind: path
- kind_detail: steps
draw:
lines:
dash: [0.75, 0.75]
dash_background_color: global.mid_color
order: global.feature_order
color: global.dark_color
width: [[15, 0.5px], [18, 3px], [19, 1.5m]]
labels-steps:
filter: { $zoom: { min: 18 } }
draw:
text-blend-order:
priority: 62
visible: true
text_source: name
font:
size: 11px
stroke: { color: global.roads_text_stroke, width: 4px }
# landuse:
# data: { source: mapzen }
# filter:
# $zoom: { min: 7 }
# draw:
# polygons:
# order: global.feature_order
# visible: false
# lines:
# order: global.feature_order
# visible: false
# # tier1:
# national_park:
# filter:
# all:
# - kind: [national_park, battlefield, protected_area]
# any:
# - not: { operator: [ "United States Forest Service" ] }
# - protect_class: ['2','3','5']
# draw:
# polygons:
# style: terrain-pattern-park
# color: [0.500,0.500,0.500]
# visible: true
# us_national_park:
# # yosemite national park, death valley national park, grand canyon national park
# filter:
# any:
# - operator: [ "United States National Park Service" ]
# - protect_class: ['2','3','5']
# draw:
# polygons:
# style: terrain-pattern-park
# color: [0.500,0.500,0.500]
# visible: true
# conservation:
# filter:
# kind: [protected_area, nature_reserve, national_park]
# not: { protect_class: ['2','3','5']}
# draw:
# polygons:
# style: terrain-pattern-park
# color: [0.750,0.750,0.750]
# visible: true
# national_forest_level_6:
# filter:
# all:
# - kind: forest
# any:
# - protect_class: ['6']
# - operator: ['United States Forest Service']
# draw:
# polygons:
# style: terrain-pattern-park
# color: [0.400,0.400,0.400]
# visible: true
# forest-landcover:
# filter: { kind: [forest, natural_forest, wood, natural_wood, natural_park], $zoom: { min: 10 }, not: { operator: "United States Forest Service" } }
# draw:
# polygons:
# style: terrain-pattern-forest
# color: [0.500,0.500,0.500]
# visible: true
# parks-and-national-forests-not-national-park:
# filter:
# all:
# - $zoom: { min: 4 }
# - kind: [park, national_park]
# any:
# - not: { operator: [ "United States National Park Service", "United States Forest Service" ] }
# - not: { protect_class: ['2','3','5','6'] }
# # default for national forests and more?
# draw:
# polygons:
# style: terrain-pattern-park
# color: [0.960,0.960,0.960]
# visible: true
# national_park:
# #filter: function() { return feature.name && (feature.name.indexOf('National Park') > -1); }
# filter:
# all:
# - kind: national_park
# - not: [ protect_class: ['2','3','5','6'], operator: [ "United States National Park Service"] ]
# draw:
# polygons:
# style: terrain-pattern-park
# color: [0.950,0.950,0.950]
# visible: true
buildings:
data: { source: mapzen, layer: buildings }
filter:
not: { location: underground }
draw:
polygons:
visible: false
order: 329
# color: [0.100,0.100,0.100,0.65]
# style: polygons_transparent
style: terrain-pattern-buildings
footprints:
filter:
any:
- { $zoom: [13], scale_rank: [1,2] }
- { $zoom: [14], scale_rank: [1,2,3] }
- { $zoom: [15], height: { min: 100 } }
- { $zoom: [15], area: { min: 700 } }
- { $zoom: [15], volume: { min: 100000 } }
- { $zoom: [16], area: { min: 100 } }
- { $zoom: [16], volume: { min: 50000 } }
- { $zoom: { min: 17 }, area: true }
draw:
polygons:
visible: true
boundaries:
data: { source: mapzen, layer: boundaries }
# country subdivisions (states, provinces)
draw:
lines:
order: global.feature_order
country:
filter:
any:
- kind: country
- admin_level: 2
draw:
country-outerline:
style: lines
order: function() { return (feature.sort_rank -1); }
color: global.extralight_color
width: [[0, 0px], [4, 2px], [8, 5px], [14, 7px], [17, 14m]]
lines:
color: global.white_color
width: [[0, 0px], [5, 0px], [6, 1px], [14, 2px]]
water:
filter: { maritime_boundary: true }
draw:
country-outerline:
visible: false
lines:
visible: false
# country-labels:
# filter: { name: true, $zoom: { min: 8 }, not: { maritime_boundary: true } }
# draw:
# text-blend-order:
# priority: 2
# visible: global.text_visible_admin
# text_source: global.ux_language_text_source_boundary_lines_left_right
# offset: [[8, [0, 7px]], [11, [0, 8px]], [12, [0, 9px]]]
# text_wrap: 100
# font:
# family: global.text_font_family
# size: 10px
# fill: global.black_color
# transform: uppercase
# no-left-right:
# filter: { "name:left": false, "name:right": false }
# draw:
# text-blend-order:
# text_source: global.ux_language_text_source_boundary_lines
# offset: 0px
other_country_boundary_disputed_etc:
filter: { kind: [disputed, indefinite, indeterminate, lease_limit, line_of_control, overlay_limit] }
draw:
lines:
dash: [1.25, 1.25]
order: global.feature_order
color: global.extralight_color
width: [[1,0.2px],[9,1.5px],[17,10m]]
disputed:
filter: { kind: [disputed, line_of_control] }
draw: