-
Notifications
You must be signed in to change notification settings - Fork 0
/
walkabout-style.yaml
6136 lines (5973 loc) · 262 KB
/
walkabout-style.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
# Walkabout is an outdoor style perfect for hiking or getting out and about, with
# mountains, ski trails, biking paths, and transit stops.
#
# Give OpenStreetMap data a professional basemap skin using the Tangram graphics library
# and Mapzen's versatile Vector Tiles.
#
# Please use and adapt the open source scene file in your own projects!
#
# Authors: Geraldine Sarmiento, Nathaniel V. Kelso
# Read more: https://github.com/tangrams/walkabout-style
#
global:
#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_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;
}
}
# To facilitate data visualizations several recommended sort orders are provided
#
# Your classic raster map overlay.
# Over all line and polygon features.
# Under map labels (icons and text), under UI elements
# (like routeline and search result pins).
sdk_order_over_everything_but_text_0: 490
sdk_order_over_everything_but_text_1: 491
sdk_order_over_everything_but_text_2: 492
sdk_order_over_everything_but_text_3: 493
sdk_order_over_everything_but_text_4: 494
sdk_order_over_everything_but_text_5: 495
sdk_order_over_everything_but_text_6: 496
sdk_order_over_everything_but_text_7: 497
sdk_order_over_everything_but_text_8: 498
sdk_order_over_everything_but_text_9: 499
#
# Your classic "underlay"
# Under roads. Above borders, water, landuse, and earth.
sdk_order_under_roads_0: 290
sdk_order_under_roads_1: 291
sdk_order_under_roads_2: 292
sdk_order_under_roads_3: 293
sdk_order_under_roads_4: 294
sdk_order_under_roads_5: 295
sdk_order_under_roads_6: 296
sdk_order_under_roads_7: 297
sdk_order_under_roads_8: 298
sdk_order_under_roads_9: 299
#
# Under water.
# Above earth and most landuse.
sdk_order_under_water_0: 190
sdk_order_under_water_1: 191
sdk_order_under_water_2: 192
sdk_order_under_water_3: 193
sdk_order_under_water_4: 194
sdk_order_under_water_5: 195
sdk_order_under_water_6: 196
sdk_order_under_water_7: 197
sdk_order_under_water_8: 198
sdk_order_under_water_9: 199
#
# Under everything.
# Tip: disable earth layer.
sdk_order_under_everything_0: 0
sdk_order_under_everything_1: 1
sdk_order_under_everything_2: 2
sdk_order_under_everything_3: 3
sdk_order_under_everything_4: 4
sdk_order_under_everything_5: 5
sdk_order_under_everything_6: 6
sdk_order_under_everything_7: 7
sdk_order_under_everything_8: 8
sdk_order_under_everything_9: 9
#
# TRANSIT OVERLAY
# should default to "auto", with SDK overriding it to true or false,
# or app logic sets other booleans that triggers auto behavior later
sdk_transit_overlay: false
#
# SHIELDS
sdk_shield_color: black
sdk_shield_text_color: white
#
# enable interactivity for key features
interactive: true
#
# default order for basemap features
feature_order: function() { return feature.sort_rank; }
sdk_building_extrude: true # building extrusion toggle
#
#labels-global:
text_visible_continent: true
text_visible_island: true
text_visible_admin: true
text_visible_populated_places: true
icon_visible_populated_places: true
text_visible_neighbourhoods: true
text_visible_neighbourhoods_e: true
text_visible_building: false # false for default
text_visible_address: false # false for default
text_visible_water_labels: true
label_visible_landuse_green: true #this needs work
icon_visible_landuse_green: true #this needs work
icon_size_green: [[0, '0px']] # 0px for no, default, more [[13, 14px], [16, 18px], [18, 19px]]
icon_size_green_l: [[0, '0px']] # 0px for no, default, more [[14,24px],[16,32px]]
text_visible_landuse_green: true
label_visible_poi_landuse: true
icon_visible_poi_landuse: false #false for default
text_visible_poi_landuse: false #false for default
label_visible_poi_landuse_e: true
icon_visible_poi_landuse_e: false #false for default
text_visible_poi_landuse_e: true
text_visible_landuse_generic: true
label_visible_station: false #false for default
icon_visible_station: false #false for default
text_visible_station: false #false for default
text_visible_highway: true
text_visible_highway_e: true #true for default
text_visible_trunk_primary: true
text_visible_trunk_primary_e2: true #true for default
text_visible_trunk_primary_e: true #true for default
text_visible_secondary: true
text_visible_secondary_e: true #true for default
text_visible_tertiary: true
text_visible_tertiary_e: true #true for default
text_visible_minor_road: true
text_visible_minor_road_e: true
text_visible_service_road: true
text_visible_path: true
text_visible_piste: true
text_visible_steps: true
text_visible_aerialway: true
sdk_road_shields: true
text_visible_exits: true
text_visible_exits_e: false #false for default
text_visible_airport_gate: true
#cameras:
camera_settings: { type: isometric, axis: [-.2, .2] }
#lights:
light_settings: { type: directional, direction: [1, 1, -.9], diffuse: 0.5, ambient: 0.85 }
#roads:
highway1: [1.00,1.00,1.00]
highway_link1: [0.00, 0.00, 0.00]
highway_casing1: [0.894,0.906,0.914]
highway_tunnel1: [0.930,0.930,0.930]
highway_tunnel_casing1: [0.894,0.906,0.914]
highway_link_tunnel_casing1: [0.350,0.350,0.350]
ferry1: [0.410,0.750,0.833]
rail1: '#999'
rail1_e: '#bbb'
rail2: '#777' # less important rail (service, sidings)
major_road1: [1.0, 1.0, 1.0]
major_road1b: [0.935, 0.935, 0.935]
major_road1c: white #15%
major_road2: [0.935, 0.935, 0.935]
major_road2a: [0.935, 0.935, 0.935]
major_road2b: [0.935, 0.935, 0.935]
major_road3: [0.935, 0.935, 0.935]
major_road4: [0.00, 0.00, 0.00]
major_road5: white
major_casing1: [0.40, 0.40, 0.40] # same as highway_casing1
major_casing2: [0.40, 0.40, 0.40] # zoomed out
major_tunnel1: [0.930,0.930,0.930]
major_tunnel_casing1: [0.695,0.739,0.790]
major_route1: [0.0, 0.0, 0.0]
major_route2: [0.2, 0.2, 0.2] # zoomed out
minor_route: [0.97, 0.97, 0.97] # same as major_route
minor_road1: [0.935, 0.935, 0.935] # natural earth
minor_road2: [1.00,1.00,1.00] # natural earth, same as major_road2
minor_road3: [0.935, 0.935, 0.935]
minor_road4: [0.935, 0.935, 0.935] # zoomed out
minor_road5: [0.935, 0.935, 0.935] # zoomed out, again
minor_casing1: white # same as highway_casing1
minor_casing2: white # zoomed out
minor_tunnel1: [0.929,0.929,0.929]
minor_tunnel_casing1: [0.695,0.739,0.790]
service_road1: [0.935, 0.935, 0.935]
service_road2: white
service_road_casing1: [0.40, 0.40, 0.40]
service_road_casing2: white
path1: [0.97, 0.97, 0.97]
path2: [0.97, 0.97, 0.97] # zoomed out
path_casing1: [0.40, 0.40, 0.40]
path_bridge_casing1: [0.40, 0.40, 0.40]
path_bridge_casing2: [0.40, 0.40, 0.40] # zoomed out
path_steps1: red
path_steps1_b: '#ccc'
piste_easy: [0.367,0.750,0.622]
piste_intermediate: [0.420,0.678,0.863]
piste_advanced: [0.450,0.450,0.450]
piste_expert: [0.450,0.450,0.450]
#boundaries:
country_boundary: [1.00,1.00,1.00]
region_boundary: [1.00,1.00,1.00]
subregion_boundary: [1.00,1.00,1.00]
city_wall: [0.682,0.682,0.682]
retaining_wall: [0.827,0.808,0.780]
snow_fence: [0.827,0.808,0.780]
fence: [0.827,0.808,0.780]
dam: [0.827,0.808,0.780]
#areas:
scene1: white # map background
water1: [0.870, 0.870, 0.870] # water wave
water2: [0.760, 0.760, 0.760] # water wave
water3: [0.5, 0.5, 0.5] # playa texture
water1_o: '#fff' # water stroke (ocean coastline)
water2_o: '#d1d1d1' # water stroke 2 (streams, lake outlines)
earth1: white # land color
earth2: '#e9e4e0' # urban
earth2_v: false # urban
green1: [0.50,0.50,0.50] # park
green1_r: '#bbbbbb' # park roads
green1_b: [.65, .65, .65] # park buildings
green1_bo: [.8, .8, .8] # park building outlines
green2: [0.90,0.90,0.90] # cemetery
green3: '#9a9a9a' # golf course
green4: [0.90,0.90,0.90] # farm faint
green4_v: false # farm faint
green5: [0.75,0.75,0.75] # farm
green6: [0.40,0.40,0.40] # nature reserve
green7: [0.85,0.85,0.85] # forest
green8: [0.80,0.80,0.80] # conservation
green9: [0.85,0.85,0.85] # forest (landcover)
green9_e: [0.90,0.90,0.90] # forest (landcover) early
green9_v: true # forest (landcover) visibility
green10: [0.85,0.85,0.85] # sports_centre
green11: [0.85,0.85,0.85] # minor zoo related AOIs
green11_o: [0.85,0.85,0.85] # minor zoo related AOIs outline
orange1: '#aaaaaa' # stadium
orange2: [0.40,0.40,0.40] # pitch (play field)
brown1: '#7b7b7b' # university
brown1_r: '#bbbbbb' # university roads
brown1_b: [.65, .65, .65] # university buildings
brown1_bo: [.8, .8, .8] # university building outlines
brown2: '#aaaaaa' # school
brown3: [0.40,0.40,0.40] # playground
red1: '#a2a2a2' # hospital
red1_r: '#bbbbbb' # hospital roads
red1_b: [.65, .65, .65] # hospital buildings
red1_bo: [.8, .8, .8] # hospital building outlines
gray-all: [0.935,0.960,0.970] # default gray for landuse outdoor style
grey1: '#cccccc' # pedestrian, retail, airport apron, parking, church
grey1_e: '#dad6d4' # pedestrian, retail, airport apron, parking, church early zoom 14
grey1_v: true # pedestrian, retail, airport apron, parking, church
grey2: [0.5, 0.5, 0.5] # airport runway
grey3: '#bbbbbb' # railway
grey4: '#ffc52a' # airport taxiway
grey5: '#ffc52a' # airport taxiway
grey6: '#dddddd' # industrial
grey6_b: [.65, .65, .65] # industrial buildings
grey6_bo: [.8, .8, .8] # industrial building outlines
grey7: '#ecebe9' # pedestrian, match minor road / path color
grey7_v: true # pedestrian visibility
grey8: '#ecebe9' # winter sports
grey8_v: true # winter sports visibility
grey9: [.7, .0, .0, 0.5] #[.7, .7, .7] # transit platform
grey9_o: [.5, .5, .5] # transit platform outline
grey9_v: true # transit platform visibility
grey10: '#d4cce6' # generic major landuse (theme park, resort, aquarium, winery)
grey10_o: '#bcb9c5' # generic major landuse outline
grey11: '#d7d7d7' # generic minor landuse (attraction, artwork)
grey11_o: '#cccccc' # generic minor landuse outline
grey12: '#cfcfcf' # generic minor amusements (roller coasters, rides, slide, carousel)
grey12_o: '#c5c5c5' # generic minor amusements
purple: '#f0e1e1' # airport
purple_v: true # airport
mystry1: '#aaaaaa' # recreation ground (type of park, sometimes around reservoirs)
building1: white # building
building2: white # building stroke
building_o: 25 # building stroke order
building_e: true # building stroke order
#labels:
text_fill: '#000' # WHITE
text_fill2: '#000' # WHITE
text_fill_road_e: '#555' # WHITE
text_fill_exits: [0.40,0.40,0.40] # motorway junctions, highway_casing1
text_fill_building: '#000' # tan
text_fill_address: [0.60,0.60,0.60] # HUH
text_fill_water: [0.354,0.531,0.620] # blue
text_fill_park: [0.175,0.175,0.175] # green
text_fill_beach: [0.35,0.35,0.35] # black
text_fill_piste: [0.350,0.350,0.350] # dark gray
text_fill_piste_e: [0.350,0.350,0.350] # dark gray early
text_stroke: [0.913,0.925,0.933] # land color
text_stroke_park: [0.913,0.925,0.933] # land color
text_stroke_water: [0.913,0.925,0.933]
text_stroke_address: [0.913,0.925,0.933] # address stroke color
townspot_sprite: townspot-m-rev # depends on land color and text settings
text_font_family: 'Open Sans' # branding in asperational Unicode, yo (or Helvetica)
cameras:
camera1: global.camera_settings
scene:
background:
color: [0.945,0.945,0.945] #f2f2f2
# animated: true
fonts:
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
Montserrat:
- weight: normal
#url: https://fonts.gstatic.com/s/montserrat/v7/zhcz-_WihjSQC0oHJ9TCYL3hpw3pgy2gAi-Ip7WPMi0.woff
url: fonts/Montserrat-Regular.woff
textures:
pois:
url: walkabout-images/[email protected]
#url: https://raw.githubusercontent.com/tangrams/walkabout-style/gh-pages/images/walkabout%402x.png
filtering: mipmap
sprites:
# define sprites: [x origin, y origin, width, height]
'US:CA-1char': [220, 854, 82, 92]
'US:CA-2char': [120, 854, 94, 94]
'US:CA-3char': [0, 854, 112, 92]
'US:CA-4char': [876, 758, 126, 92]
'US:CA-5char': [740, 758, 128, 92]
'US:I-1char': [0, 958, 90, 100]
'US:I-2char': [446, 470, 102, 102]
'US:I-3char': [308, 470, 132, 100]
'US:I-4char': [160, 470, 140, 100]
'US:I-5char': [0, 470, 152, 100]
'US:NY-1char': [176, 666, 72, 88]
'US:NY-2char': [460, 574, 88, 88]
'US:NY-3char': [348, 574, 104, 86]
'US:NY-4char': [224, 574, 116, 86]
'US:NY-5char': [96, 574, 120, 86]
'US:PA-1char': [96, 666, 72, 88]
'US:PA-2char': [0, 666, 88, 88]
'US:PA-3char': [820, 574, 112, 88]
'US:PA-4char': [692, 574, 120, 88]
'US:PA-5char': [556, 574, 128, 88]
'US:US-1char': [900, 854, 88, 96]
'US:US-2char': [788, 854, 106, 94]
'US:US-3char': [642, 854, 138, 100]
'US:US-4char': [478, 854, 158, 100]
'US:US-5char': [308, 854, 164, 100]
airport: [952, 0, 38, 38]
aerodrome: [952, 0, 38, 38]
allotments: [874, 252, 38, 38]
aquarium: [230, 210, 38, 38]
arrow: [552, 294, 38, 38]
atm: [0, 168, 38, 38]
attraction: [872, 210, 38, 38]
bakery: [640, 168, 38, 38]
bank: [46, 168, 38, 38]
category-predicate-money: [46, 168, 38, 38]
bar: [322, 168, 38, 38]
pub: [322, 168, 38, 38]
category-predicate-drink: [322, 168, 38, 38]
baseball: [552, 84, 38, 38]
basketball: [506, 84, 38, 38]
battlefield: [138, 252, 38, 38]
bbq: [552, 252, 38, 38]
beach: [690, 84, 38, 38]
beach_resort: [46, 252, 38, 38]
bench: [630, 0, 38, 38]
bicycle: [964, 126, 38, 38]
bicycle_rental: [964, 126, 38, 38]
bicycle_rental_station: [964, 126, 38, 38]
bicycle_parking: [736, 126, 38, 38]
biergarten: [780, 210, 38, 38]
brewery: [780, 210, 38, 38]
bike_bicycle: [962, 168, 38, 38]
bike_bicycle_parking: [92, 210, 38, 38]
bike_bicycle_rental_station: [46, 210, 38, 38]
bike_bicycle_repair_station: [0, 210, 38, 38]
bike_cafe: [824, 168, 38, 38]
bike_cycle_barrier: [732, 168, 38, 38]
bike_drinking_water: [870, 168, 38, 38]
bike_pub: [778, 168, 38, 38]
bike_toilets: [916, 168, 38, 38]
boat_rental: [920, 252, 38, 38]
books: [918, 126, 38, 38]
bridge: [966, 84, 38, 38]
buddhist: [828, 84, 38, 38]
building: [506, 168, 38, 38]
hangar: [506, 168, 38, 38]
nursing_home: [506, 168, 38, 38]
manor: [506, 168, 38, 38]
apartments: [506, 168, 38, 38]
care_home: [506, 168, 38, 38]
bus_station: [860, 0, 38, 38]
bus_stop: [860, 0, 38, 38]
butcher: [0, 84, 38, 38]
cafe: [594, 168, 38, 38]
camp_site: [874, 84, 38, 38]
capital-l: [726, 296, 32, 32]
capital-m: [694, 296, 24, 24]
capital-s: [664, 296, 20, 20]
capital-xl: [814, 296, 40, 40]
capital-xs: [642, 296, 16, 16]
car: [872, 126, 38, 38]
category-namespace-mobility: [872, 126, 38, 38]
category-predicate-mobility: [872, 126, 38, 38]
car_repair: [92, 168, 38, 38]
car_sharing: [676, 0, 38, 38]
caravan_site: [276, 252, 38, 38]
castle: [460, 42, 38, 38]
fort: [460, 42, 38, 38]
cemetery: [782, 84, 38, 38]
grave_yard: [782, 84, 38, 38]
christian: [276, 126, 38, 38]
cinema: [276, 210, 38, 38]
clothes: [322, 210, 38, 38]
fashion: [322, 210, 38, 38]
college: [368, 210, 38, 38]
university: [368, 210, 38, 38]
confectionery: [504, 210, 38, 38]
convenience: [138, 84, 38, 38]
county_shield-1char: [256, 666, 72, 72]
county_shield-2char: [0, 574, 88, 72]
county_shield-3char: [868, 470, 104, 72]
county_shield-4char: [724, 470, 136, 72]
county_shield-5char: [556, 470, 160, 72]
courthouse: [446, 0, 38, 38]
dam: [368, 294, 38, 38]
dentist: [266, 0, 38, 38]
department_store: [826, 126, 38, 38]
doctors: [224, 0, 38, 38]
clinic: [224, 0, 38, 38]
dog_park: [460, 252, 38, 38]
dot-black: [506, 294, 38, 38]
dot-white: [322, 294, 38, 38]
drinking_water: [734, 210, 38, 38]
dry_cleaning: [92, 84, 38, 38]
electronics: [690, 126, 38, 38]
computer: [690, 126, 38, 38]
enclosure: [414, 294, 38, 38]
estate_agent: [184, 42, 38, 38]
factory: [460, 168, 38, 38]
industrial: [460, 168, 38, 38]
chimney: [460, 168, 38, 38]
substation: [460, 168, 38, 38]
wastewater_plant: [460, 168, 38, 38]
works: [460, 168, 38, 38]
water_works: [460, 168, 38, 38]
plant: [460, 168, 38, 38]
generator: [460, 168, 38, 38]
category-predicate-industry: [460, 168, 38, 38]
fast_food: [642, 210, 38, 38]
ferry: [906, 0, 38, 38]
ferry_terminal: [906, 0, 38, 38]
fire_station: [400, 0, 38, 38]
firepit: [414, 252, 38, 38]
fishing: [322, 252, 38, 38]
fishing_area: [322, 252, 38, 38]
fitness: [966, 42, 38, 38]
fitness_station: [966, 42, 38, 38]
florist: [230, 126, 38, 38]
forest: [550, 210, 38, 38]
natural_forest: [550, 210, 38, 38]
nature_reserve: [550, 210, 38, 38]
conservation: [550, 210, 38, 38]
protected_area: [550, 210, 38, 38]
grass: [550, 210, 38, 38]
fountain: [368, 126, 38, 38]
fuel: [458, 210, 38, 38]
gallery: [138, 210, 38, 38]
garden: [736, 84, 38, 38]
gas_canister: [46, 294, 38, 38]
gate: [460, 294, 38, 38]
generic: [596, 294, 38, 38]
category-namespace-other: [596, 294, 38, 38]
category-predicate-addressing: [596, 294, 38, 38]
generic_shield-1char: [928, 666, 72, 72]
generic_shield-2char: [824, 666, 98, 72]
generic_shield-3char: [684, 666, 132, 72]
generic_shield-4char: [524, 666, 152, 72]
generic_shield-5char: [336, 666, 180, 72]
geyser: [0, 252, 38, 38]
gift: [184, 126, 38, 38]
golf_course: [460, 84, 38, 38]
government: [230, 168, 38, 38]
townhall: [230, 168, 38, 38]
public: [230, 168, 38, 38]
embassy: [230, 168, 38, 38]
category-predicate-civic: [230, 168, 38, 38]
hairdresser: [92, 42, 38, 38]
hardware: [920, 42, 38, 38]
doityourself: [920, 42, 38, 38]
painter: [920, 42, 38, 38]
historical: [138, 126, 38, 38]
hospital: [182, 0, 38, 38]
category-namespace-health: [182, 0, 38, 38]
category-predicate-health: [182, 0, 38, 38]
hot_spring: [322, 84, 38, 38]
hotel: [814, 0, 38, 38]
motel: [814, 0, 38, 38]
hostel: [814, 0, 38, 38]
category-predicate-sleep: [814, 0, 38, 38]
hunting: [962, 210, 38, 38]
ice_cream: [826, 210, 38, 38]
information: [918, 210, 38, 38]
jewelry: [782, 42, 38, 38]
jewish: [44, 0, 38, 38]
landmark: [354, 0, 38, 38]
memorial: [354, 0, 38, 38]
monument: [354, 0, 38, 38]
tower: [354, 0, 38, 38]
beacon: [354, 0, 38, 38]
laundry: [736, 42, 38, 38]
library: [0, 0, 38, 38]
light_rail: [768, 0, 38, 38]
tram_stop: [768, 0, 38, 38]
lighthouse: [276, 84, 38, 38]
liquor: [598, 126, 38, 38]
alcohol: [598, 126, 38, 38]
mall: [690, 42, 38, 38]
marina: [184, 168, 38, 38]
dock: [184, 168, 38, 38]
mine: [828, 42, 38, 38]
mobile_phone: [552, 42, 38, 38]
motorcycle: [690, 252, 38, 38]
museum: [92, 126, 38, 38]
music: [414, 42, 38, 38]
muslim: [90, 0, 38, 38]
newspaper: [368, 42, 38, 38]
kiosk: [368, 42, 38, 38]
observatory: [0, 294, 38, 38]
office: [644, 84, 38, 38]
insurance: [644, 84, 38, 38]
company: [644, 84, 38, 38]
category-predicate-service: [644, 84, 38, 38]
optician: [322, 42, 38, 38]
outdoor: [138, 294, 38, 38]
park: [322, 126, 38, 38]
national_park: [322, 126, 38, 38]
protected_area: [322, 126, 38, 38]
category-predicate-nature: [322, 126, 38, 38]
parking: [782, 126, 38, 38]
peak: [230, 84, 38, 38]
pet: [276, 42, 38, 38]
pharmacy: [46, 84, 38, 38]
photographic_laboratory: [230, 42, 38, 38]
photographer: [230, 42, 38, 38]
picnic_site: [644, 252, 38, 38]
picnic_table: [644, 252, 38, 38]
pier: [722, 0, 38, 38]
place_of_worship: [368, 168, 38, 38]
chapel: [368, 168, 38, 38]
wayside_shrine: [368, 168, 38, 38]
category-predicate-religion: [368, 168, 38, 38]
playground: [506, 42, 38, 38]
police: [308, 0, 38, 38]
post_office: [414, 168, 38, 38]
quarry: [874, 42, 38, 38]
mineshaft: [874, 42, 38, 38]
adit: [874, 42, 38, 38]
ranger_station: [598, 252, 38, 38]
recreation_track: [782, 252, 38, 38]
recycling: [138, 42, 38, 38]
restaurant: [596, 210, 38, 38]
category-namespace-eat_and_drink: [596, 210, 38, 38]
category-predicate-eat: [596, 210, 38, 38]
retail: [644, 42, 38, 38]
store: [644, 42, 38, 38]
category-namespace-shop_and_service: [644, 42, 38, 38]
category-predicate-shop: [644, 42, 38, 38]
ruin: [584, 0, 38, 38]
ruins: [584, 0, 38, 38]
archaeological_site: [584, 0, 38, 38]
school: [598, 84, 38, 38]
kindergarten: [598, 84, 38, 38]
category-namespace-education_and_religion: [598, 84, 38, 38]
category-predicate-education: [598, 84, 38, 38]
scuba_diving: [92, 294, 38, 38]
dive_centre: [92, 294, 38, 38]
sdk_shield-1char: [0, 758, 84, 84]
sdk_shield-2char: [92, 758, 112, 84]
sdk_shield-3char: [212, 758, 144, 84]
sdk_shield-4char: [364, 758, 168, 84]
sdk_shield-5char: [540, 758, 192, 84]
shoemaker: [598, 42, 38, 38]
shower: [230, 252, 38, 38]
ski: [414, 126, 38, 38]
winter_sports: [414, 126, 38, 38]
ski_rental: [414, 126, 38, 38]
ski_school: [414, 126, 38, 38]
ski_jumping: [414, 126, 38, 38]
skiing: [414, 126, 38, 38]
slipway: [184, 252, 38, 38]
soccer: [414, 84, 38, 38]
sports: [276, 168, 38, 38]
pitch: [276, 168, 38, 38]
sports_centre: [276, 168, 38, 38]
recreation_ground: [276, 168, 38, 38]
spring: [368, 84, 38, 38]
stadium: [506, 126, 38, 38]
subway_entrance: [538, 0, 38, 38]
summer_camp: [828, 252, 38, 38]
supermarket: [644, 126, 38, 38]
greengrocer: [644, 126, 38, 38]
swimming_area: [368, 252, 38, 38]
swimming_pool: [552, 126, 38, 38]
tailor: [46, 42, 38, 38]
telescope: [966, 252, 38, 38]
tennis: [460, 126, 38, 38]
theatre: [686, 168, 38, 38]
category-predicate-fun: [686, 168, 38, 38]
theme_park: [46, 126, 38, 38]
amusement_ride: [46, 126, 38, 38]
toilets: [920, 84, 38, 38]
townspot-l: [132, 338, 32, 32]
townspot-l-rev: [942, 296, 32, 32]
townspot-m: [100, 338, 24, 24]
townspot-m-rev: [910, 296, 24, 24]
townspot-s: [72, 338, 20, 20]
townspot-s-rev: [882, 296, 20, 20]
townspot-xl: [172, 338, 40, 40]
townspot-xl-rev: [0, 340, 40, 40]
townspot-xs: [48, 338, 16, 16]
townspot-xs-rev: [862, 296, 12, 12]
toys: [0, 42, 38, 38]
traffic_signals: [414, 210, 38, 38]
trailhead: [184, 294, 38, 38]
train_station: [492, 0, 38, 38]
station: [492, 0, 38, 38]
category-predicate-transport: [492, 0, 38, 38]
tree: [230, 294, 38, 38]
tree-s: [276, 294, 38, 38]
ux-current-location: [674, 338, 88, 88]
ux-locate-off: [300, 338, 72, 72]
ux-locate-on: [220, 338, 72, 72]
ux-route-arrow: [380, 338, 128, 128]
ux-route-start: [594, 338, 72, 92]
ux-route-stop: [516, 338, 72, 92]
ux-search-active: [768, 338, 72, 108]
ux-search-inactive: [848, 338, 72, 108]
ux-transit-stop: [766, 296, 42, 36]
veterinary: [136, 0, 38, 38]
viewpoint: [184, 210, 38, 38]
category-namespace-do_and_see: [184, 210, 38, 38]
category-predicate-attraction: [184, 210, 38, 38]
vineyard: [138, 168, 38, 38]
volcano: [184, 84, 38, 38]
water_park: [92, 252, 38, 38]
water_slide: [92, 252, 38, 38]
water_tower: [736, 252, 38, 38]
waterfall: [506, 252, 38, 38]
wine: [688, 210, 38, 38]
winery: [548, 168, 38, 38]
zoo: [0, 126, 38, 38]
building-grid:
url: walkabout-images/building-grid.gif
#url: https://raw.githubusercontent.com/tangrams/walkabout-style/gh-pages/images/building-grid.png
filtering: mipmap
sources:
mapzen:
type: MVT
url: http://54.245.34.179:8080/all/{z}/{x}/{y}.mvt
max_zoom: 16
# normals: # normals
#type: Raster
#url: https://tile.mapzen.com/mapzen/terrain/v1/normal/{z}/{x}/{y}.png
#url_params:
# api_key: global.sdk_mapzen_api_key
#max_zoom: 15
# # Only enable this for local debug, should not be enabled for prod (app inserts these at runtime)
# # These are all in San Francisco, California
# #
# # Current location gem
# mz_current_location:
# type: GeoJSON
# url: https://gist.githubusercontent.com/anonymous/9e9588228b0a604264a2/raw/b28be49bea0b7feb859eb65b588c28e9fee5ae2c/map.geojson
# # Route line
# mz_route_line:
# type: GeoJSON
# # sf to ny
# # url: https://gist.githubusercontent.com/anonymous/30c6c1a75c168d91d90c/raw/92bfe55e622766d250b1f2f5d17bdc7c26acb956/map.geojson
# # local sf trip
# url: https://gist.githubusercontent.com/anonymous/9a610ebda6fe4be7bccc/raw/8d217e43f2412d48d01534ba115f1e42dac72e68/map.geojson
# # Dashed route line
# mz_dash_line:
# type: GeoJSON
# url: https://gist.githubusercontent.com/anonymous/d73b851c64c3e5fbfc2754aa32f44c10/raw/938ae435776e176919c4797bed1465a92e403ef3/map.geojson
# # Transit route line
# mz_route_line_transit:
# type: GeoJSON
# url: https://gist.githubusercontent.com/anonymous/71ae88cbc6d62c4d141ecd6a61060050/raw/2254bbc18243f5dc609e663a580c9412a7447936/map.geojson
# # Pin at start of route
# mz_route_start:
# type: GeoJSON
# url: https://gist.githubusercontent.com/anonymous/5262969cb7549ea69221/raw/be03f233fa323d9b5cf50ef1d8e89a1faa3750f1/map.geojson
# # Pin at end of route
# mz_route_destination:
# type: GeoJSON
# url: https://gist.githubusercontent.com/anonymous/dbae9635dfe46796490e/raw/df55c318635a7d91b309ed40754d4738a292fd38/map.geojson
# # Arrow for current route location
# mz_route_location:
# type: GeoJSON
# url: https://gist.githubusercontent.com/anonymous/36613092be6e2aa004fd/raw/f753d13069425199e1dea1b449ef67d723f6510e/map.geojson
# # Dots for transit stops in route preview
# mz_route_transit_stop:
# type: GeoJSON
# url: https://gist.githubusercontent.com/anonymous/b9f16bca4a804f50faf71277d52ee4ab/raw/db13e4e765fa1ac8844b8ba02f4a0f66fe772907/map.geojson
# # Pins showing search result locations
# mz_search_result:
# type: GeoJSON
# url: https://gist.githubusercontent.com/anonymous/57dc09eeb120919f76de/raw/43426217da3c2bae0522dc4257aaa61e4df3981e/map.geojson
# # Default point styling (SDK)
# mz_default_point:
# type: GeoJSON
# url: https://gist.githubusercontent.com/anonymous/16324c771edfce45be0721390389b878/raw/7dbaebf17da7da8562e6c6f8768bc8cff83efa88/map.geojson
# # Default shield styling (SDK)
# mz_default_shield:
# type: GeoJSON
# url: https://gist.githubusercontent.com/nvkelso/3c08dba1eced4d01df98c1a9a7801162/raw/d83a5a396fc7b22309b8ca89336ad2dcfff6c452/map.geojson
# # Default line styling (SDK)
# mz_default_line:
# type: GeoJSON
# url: https://gist.githubusercontent.com/anonymous/26f4e8b6b34b2617b5d5533d89decb39/raw/df8e180ab4f7f19448014dccc4a755f7cfa20003/map.geojson
# # Default polygon styling (SDK)
# mz_default_polygon:
# type: GeoJSON
# url: https://gist.githubusercontent.com/anonymous/88235c795bb44b8c45150bdd5561f947/raw/71d4fab97b6513833bf1a589167119e6169ef86d/map.geojson
styles:
highlight:
base: lines
dots-lines:
base: lines
lighting: false
texcoords: true
blend: overlay
shaders:
defines:
dotSize: .1
blocks:
color: |
vec2 st = fract(v_texcoord.xy);
st -= .5;
color.a = 1.- step(dotSize, dot(st,st)*2.);
dashed:
base: lines
dash: [2.25, 1.25]
dash_background_color: [0.808,0.860,0.851]
dashed_steps:
base: lines
dash: [0.5, 0.25]
dash_background_color: [0.760,0.785,0.805]
dashed_small:
base: lines
dash: [0.5, 0.5]
dash_background_color: [0.867, 0.867, 0.867]
dashed_big:
base: lines
dash: [2.0, 1.0]
dash_background_color: [0.808,0.860,0.851]
dashed_tunnel:
base: lines
dash: [5, 3]
#dash_background_color: red
terrain:
base: polygons
lighting: false
raster: normal
shaders:
uniforms:
# u_envmap: images/relief-shading-environment-map.jpg
u_envmap: walkabout-images/draw-test10.jpg
# u_envmap: https://raw.githubusercontent.com/tangrams/walkabout-style/gh-pages/images/draw-test10.jpg
u_contrast: 1.
u_brightness: 1.
blocks:
global: |
// Simplified view-independent environment map
vec4 terrainEnvmap (in sampler2D _tex, in vec3 _normal) {
const vec3 eye = vec3(0.,0.,-1.);
vec3 r = reflect(eye, _normal);
r.z += 1.;
float m = 2. * length(r);
vec2 uv = r.xy / m + .5;
return texture2D(_tex, uv);
}
const float e = 2.71828;
color: |
// scale up normals with a function
// https://www.desmos.com/calculator/bv4mzh8erz
//float scale = 10./(u_map_position.z-.7) + 1.8;
float scale1 = 20./(u_map_position.z) + 1.5;
normal.z /= scale1; // turn terrain exaggeration up/down
// fade out spheremap normals with a function
// https://www.desmos.com/calculator/ptgkzcnfyc
float m = 3.5 * (u_map_position.z - 0.8) * pow(e, u_map_position.z * -.29);
m = clamp(m, 0., 1.5);
color = terrainEnvmap(u_envmap, normal);
// Apply contrast
float contrast = m;
color.rgb = ((color.rgb - 0.5) * max(contrast, 0.)) + 0.5;
// Apply brightness
float brightness = .5 - m * .5;
color.rgb += brightness;
color *= v_color; // apply layer color
terrain-park:
base: polygons
lighting: false
raster: normal
shaders:
uniforms:
u_envmap: walkabout-images/walkabout-green1.jpg
blocks:
global: |
vec4 terrainEnvmap (in sampler2D _tex, in vec3 _normal) {
const vec3 eye = vec3(0.,0.,-1.);
vec3 r = reflect(eye, _normal);
r.z += 1.;
float m = 2. * length(r);
vec2 uv = r.xy / m + .5;
return texture2D(_tex, uv);
}
const float e = 2.71828;
color: |
float scale1 = 20./(u_map_position.z) + 1.5;
normal.z /= scale1;
float m = 3.95 * (u_map_position.z - 0.8) * pow(e, u_map_position.z * -.29);
m = clamp(m, 0., 1.5);
color = terrainEnvmap(u_envmap, normal);
float contrast = m;
color.rgb = ((color.rgb - 0.5) * max(contrast, 0.)) + 0.5;
float brightness = .5 - m * .5;
color.rgb += brightness;
color *= v_color;
# HSV/RGB functions
hsv:
shaders:
blocks:
global: |
vec3 rgb2hsv(vec3 c)
{
vec4 K = vec4(0.0, -1.0 / 3.0, 2.0 / 3.0, -1.0);
vec4 p = mix(vec4(c.bg, K.wz), vec4(c.gb, K.xy), step(c.b, c.g));
vec4 q = mix(vec4(p.xyw, c.r), vec4(c.r, p.yzx), step(p.x, c.r));
float d = q.x - min(q.w, q.y);
float e = 1.0e-10;
return vec3(abs(q.z + (q.w - q.y) / (6.0 * d + e)), d / (q.x + e), q.x);
}
vec3 hsv2rgb(vec3 c)
{
vec4 K = vec4(1.0, 2.0 / 3.0, 1.0 / 3.0, 3.0);
vec3 p = abs(fract(c.xxx + K.xyz) * 6.0 - K.www);
return c.z * mix(K.xxx, clamp(p - K.xxx, 0.0, 1.0), c.y);
}
scale-buildings:
shaders:
blocks:
position: |
// scale buildings based on zoom
float zoom = u_map_position.z;
float min = .1; // minimum building scale
float midpoint = 16.; // middle of zoom range