-
Notifications
You must be signed in to change notification settings - Fork 0
/
scene.yaml
1819 lines (1723 loc) · 72.7 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: 'Orbitron'
roads_text_fill: [0.800,0.800,0.800]
roads_text_stroke: [0.020,0.020,0.020]
roads_color: [0.350,0.350,0.350]
roads_major_color: [0.750,0.750,0.750]
roads_tunnel: [0.300,0.300,0.300]
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_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;
}
*/
}
# 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
scene:
background:
color: [0.000,0.000,0.000]
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: 16
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: 15
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: earth-grid
order: global.feature_order
color: [0.060,0.060,0.060]
water:
data: { source: mapzen, layer: water }
draw:
polygons:
style: water-grid
order: global.feature_order
color: [0.000,0.000,0.000]
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.000,0.000,0.000]
other-water-areas:
filter: { not: { kind: [ocean, lake, water, reservoir] }, $zoom: { min: 11 }, area: { min: 100 } }
draw:
polygons:
color: [0.000,0.000,0.000]
water-boundary-ocean:
filter: { boundary: true, kind: ocean, $zoom: { min: 1 } }
draw:
lines:
visible: true
order: global.feature_order
color: [[1, [0.150,0.150,0.150]], [18, [0.300,0.300,0.300]]]
width: [[8, 1px], [20, 2px]]
join: round
outline:
color: [0.100,0.100,0.100]
width: [[3, 0px], [16, 2px]]
water_boundaries-not-ocean:
filter:
all:
- boundary: true
- not: { kind: ocean }
- $zoom: { min: 7 }
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:
lines:
visible: true
order: global.feature_order
color: [[1, [0.150,0.150,0.150]], [18, [0.300,0.300,0.300]]]
width: [[8, 1px], [20, 2px]]
join: round
outline:
color: [0.100,0.100,0.100]
width: [[3, 0px], [16, 2px]]
swimming-pools-early:
filter: { kind: swimming_pool, $zoom: { max: 19 } }
draw:
lines:
visible: false
riverbank:
# river boundaries like the thames in london, la seine in paris
filter: { kind: riverbank }
draw:
lines:
visible: true
color: [[1, [0.150,0.150,0.150]], [18, [0.300,0.300,0.300]]]
width: 1px
roads:
data: { source: mapzen, layer: roads }
enabled: true
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: Cairo
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:
style: roads-glow
color: [1.000,1.000,1.000]
width: [[8, 1px], [10, 2px], [12, 4px], [14, 10px], [18, 20px]]
link:
filter: { is_link: true } # on- and off-ramps, etc
draw:
lines:
color: [1.000,1.000,1.000]
width: [[8, 0.5px], [10, 1px], [12, 2px], [14, 5px], [18, 10px]]
tunnel-link:
filter: {is_tunnel: true, $zoom: { min: 13 } }
draw:
lines:
color: [0.500,0.500,0.500]
tunnel:
filter: { is_tunnel: true, $zoom: { min: 13 } }
draw:
lines:
color: global.roads_tunnel
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:
# family: Aldrich
# 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: global.roads_color
width: 1px
trunk_primary:
filter: { kind_detail: [trunk, primary] }
draw:
lines:
color: global.roads_major_color
width: [[8, 0.5px], [18, 2px]]
routes:
filter: { ref: true }
draw:
lines:
style: roads-glow
color: [1.000,1.000,1.000]
width: [[8, 1px], [10, 2px], [12, 4px], [14, 10px], [18, 20px]]
tunnel:
filter: { is_tunnel: true, $zoom: { min: 13 } }
draw:
lines:
color: global.roads_tunnel
# 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:
# family: Aldrich
# 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: global.roads_color
width: [[10, 0.5px], [18, 2px]]
tunnel:
filter: { is_tunnel: true, $zoom: { min: 13 } }
draw:
lines:
color: global.roads_tunnel
width: [[12, 0.5px], [18, 2px]]
secondary:
filter: { kind_detail: secondary }
draw:
lines:
color: global.roads_major_color
width: [[10, 0.5px], [18, 2px]]
routes:
filter: { ref: true, $zoom: { min: 12 } }
draw:
lines:
color: global.roads_major_color
width: [[10, 0.5px], [18, 2px]]
tunnel:
filter: {is_tunnel: true, $zoom: { min: 13 } }
draw:
lines:
color: global.roads_tunnel
width: [[13, 0.5px], [18, 2px]]
# 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:
# 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: global.roads_color
width: [[11, 0.5px], [18, 2px]]
routes:
filter: { ref: true, $zoom: { min: 12 } }
draw:
lines:
color: global.roads_color
width: [[11, 0.5px], [18, 2px]]
tunnel:
filter: { is_tunnel: true, $zoom: { min: 13 } }
draw:
lines:
color: global.roads_tunnel
width: [[13, 0.5px], [18, 2px]]
link:
filter: { is_link: true } # on- and off-ramps, etc
draw:
lines:
color: global.roads_color
width: [[11, 0.0px], [18, 2px]]
# 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: global.roads_color
width: [[11, 0.35px], [18, 2px]]
round:
filter: { $zoom: { min: 17 } }
draw:
lines:
cap: round
join: round
tunnel:
filter: {is_tunnel: true, $zoom: { min: 13 } }
draw:
lines:
color: global.roads_tunnel
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.white_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.white_color
# width: [[14, 0px], [16, 0.15px], [17, 2.5px], [20, 3m]]
# footway:
# filter: { kind_detail: footway }
# draw:
# lines:
# color: global.white_color
# width: [[14, 0px], [16, 0.15px], [17, 2.5px], [20, 3m]]
# bridge:
# filter: { is_bridge: true }
# draw:
# lines:
# cap: round
# outline:
# color: [[13, global.light_color], [15, global.mid_color]]
# cap: butt
# bridge:
# filter: { is_bridge: true }
# draw:
# lines:
# cap: round
# outline:
# color: global.mid_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.white_color
# width: [[13, 0px], [16, 0.15px], [17, 2.5px], [20, 4m]]
# bridge:
# filter: { is_bridge: true }
# draw:
# lines:
# cap: butt
# color: global.white_color
# outline:
# color: [[13, global.light_color], [15, global.black_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.white_color
# order: global.feature_order
# color: [[15, global.light_color], [19, global.lightest_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 }
enabled: true
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: circles-on-grid
color: [0.060,0.060,0.060]
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: circles-on-grid
color: [0.060,0.060,0.060]
visible: true
conservation:
filter:
$zoom: { min: 4 }
kind: [protected_area, nature_reserve, national_park]
not: { protect_class: ['2','3','5']}
draw:
polygons:
style: circles-on-grid
color: [0.060,0.060,0.060]
visible: true
national_forest_level_6:
filter:
all:
- kind: forest
any:
- protect_class: ['6']
- operator: ['United States Forest Service']
draw:
polygons:
style: circles-on-grid
color: [0.060,0.060,0.060]
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: circles-on-grid
color: [0.060,0.060,0.060]
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'] }
draw:
polygons:
style: circles-on-grid
color: [0.060,0.060,0.060]
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: circles-on-grid
visible: true
golf_course:
filter:
kind: golf_course
draw:
polygons:
style: circles-on-grid
color: [0.060,0.060,0.060]
visible: true
buildings:
data: { source: mapzen, layer: buildings }
enabled: true
filter:
not: { location: underground }
draw:
polygons:
visible: false
order: 329
color: [0.060,0.060,0.060]
footprints:
filter:
any:
- { $zoom: [13], scale_rank: [1,2,3] }
- { $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
style: lines-on-grid
in_university:
filter:
landuse_kind: [university, college]
draw:
polygons:
visible: true
style: university-building-grid
color: [0.050,0.050,0.050]
lines:
visible: true
color: [0.270,0.270,0.270]
width: [[13, 1px], [16, 4px], [20, 7px]]
boundaries:
data: { source: mapzen, layer: boundaries }
enabled: false
# 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.light_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.light_color
width: [[1,0.2px],[9,1.5px],[17,10m]]
disputed:
filter: { kind: [disputed, line_of_control] }
draw:
lines:
dash: [2.0, 1.0]
order: global.feature_order
color: global.light_color
width: [[1, 0.5px], [9, 2.5px], [17,14m]]
region:
filter:
any:
- kind: [region,macroregion]
- kind_detail: [3,4]
draw:
lines:
color: global.light_color
# width: [[0, 0.5px], [9, 2px], [14, 4px], [16, 6.5px], [17, 16m]]
width: [[0, 0.5px], [14, 3px], [16, 5px], [17, 16m]]
water:
filter: { maritime_boundary: true }
draw:
lines:
visible: false
dash-borders:
filter:
$zoom: { min: 7 }
draw:
lines:
dash: [7.0, 2.0]
early:
filter: { not: { min_zoom: [1,2] }, $zoom: { max: 8 } }
draw:
lines:
visible: false
# region-labels:
# filter: { name: true, $zoom: { min: 9 }, not: { maritime_boundary: true } }
# draw:
# text-blend-order:
# priority: 3
# visible: global.text_visible_admin
# text_source: global.ux_language_text_source_boundary_lines_left_right
# offset: [[8,[0, 5px]], [11, [0, 6px]], [12,[0, 7px]]]
# text_wrap: 100
# # offset: [0px, 10px]
# # anchor: top
# font:
# family: global.text_font_family
# size: 9px
# fill: global.mid_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
places:
data: { source: mapzen, layer: places }
enabled: true
filter:
name: true
draw:
text-blend-order:
visible: false # labels are enabled by each layer below
buffer: 3px
font:
family: global.text_font_family
fill: [0.800,0.800,0.800]
# END NOTE
populated-places:
filter:
kind: locality
draw:
text-blend-order:
visible: true
buffer: 42px
font:
size: [[5,9px],[8,10px],[12,11px]]
stroke: { color: [0.060,0.060,0.060], width: 6px }
# _text_early:
# filter: { $zoom: { max: 11 } }
# draw:
# text-blend-order:
# visible: false
# HACK
# NOTE: These should use icon: buffer instead of going visible: false, but there are problems using icon here :(
# This fixes Paris area, but causes problems for small places in the USA eg Table Bluff near Eureka, California.
funky-village:
filter: { $zoom: [11], population: { max: 1000 }, kind_detail: [village] }
draw:
text-blend-order:
visible: false
funky-isolated_dwelling:
filter: { $zoom: [13], kind_detail: [isolated_dwelling] }
draw:
text-blend-order:
visible: false
hamlet:
filter: { $zoom: [13], kind_detail: hamlet }
draw:
text-blend-order:
visible: false
# END HACK
# someone in London and Salt Lake City thought neighbourhoods should be tagged place: locality
# They were wrong
funky-fake-neighbourhoods:
filter: { $zoom: { min: 13 }, kind_detail: [locality] }
draw:
text-blend-order:
visible: false
population-10m-up:
filter:
population: { min: 10000000 }
draw:
text-blend-order:
priority: 6
font:
size: [[2,11px],[6,15px],[8,18px],[10,20px],[12,20px],[13,0px]]
population-5m-10m:
filter:
population: { min: 5000000, max: 10000000 }
draw:
text-blend-order:
priority: 7
font:
size: [[4,10px],[6,14px],[8,18px],[10,20px],[12,20px],[13,0px]]
population-1m-5m:
filter:
population: { min: 1000000, max: 5000000 }
draw: