UNPKG

61.2 kBJavaScriptView Raw
1"use strict";
2var protomaps_themes_base = (() => {
3 var __defProp = Object.defineProperty;
4 var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5 var __getOwnPropNames = Object.getOwnPropertyNames;
6 var __hasOwnProp = Object.prototype.hasOwnProperty;
7 var __export = (target, all) => {
8 for (var name in all)
9 __defProp(target, name, { get: all[name], enumerable: true });
10 };
11 var __copyProps = (to, from, except, desc) => {
12 if (from && typeof from === "object" || typeof from === "function") {
13 for (let key of __getOwnPropNames(from))
14 if (!__hasOwnProp.call(to, key) && key !== except)
15 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16 }
17 return to;
18 };
19 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
21 // src/index.ts
22 var src_exports = {};
23 __export(src_exports, {
24 default: () => src_default,
25 labels: () => labels,
26 noLabels: () => noLabels
27 });
28
29 // src/base_layers.ts
30 function nolabels_layers(source, t) {
31 return [
32 {
33 id: "background",
34 type: "background",
35 paint: {
36 "background-color": t.background
37 }
38 },
39 {
40 id: "earth",
41 type: "fill",
42 source,
43 "source-layer": "earth",
44 paint: {
45 "fill-color": t.earth
46 }
47 },
48 {
49 id: "landuse_park",
50 type: "fill",
51 source,
52 "source-layer": "landuse",
53 filter: [
54 "any",
55 [
56 "in",
57 "pmap:kind",
58 "national_park",
59 "park",
60 "cemetery",
61 "protected_area",
62 "nature_reserve",
63 "forest",
64 "golf_course"
65 ]
66 ],
67 paint: {
68 "fill-color": [
69 "interpolate",
70 ["linear"],
71 ["zoom"],
72 0,
73 t.park_a,
74 12,
75 t.park_b
76 ]
77 }
78 },
79 {
80 id: "landuse_urban_green",
81 type: "fill",
82 source,
83 "source-layer": "landuse",
84 filter: [
85 "any",
86 ["in", "pmap:kind", "allotments", "village_green", "playground"]
87 ],
88 paint: {
89 "fill-color": t.park_b,
90 "fill-opacity": 0.7
91 }
92 },
93 {
94 id: "landuse_hospital",
95 type: "fill",
96 source,
97 "source-layer": "landuse",
98 filter: ["any", ["==", "pmap:kind", "hospital"]],
99 paint: {
100 "fill-color": t.hospital
101 }
102 },
103 {
104 id: "landuse_industrial",
105 type: "fill",
106 source,
107 "source-layer": "landuse",
108 filter: ["any", ["==", "pmap:kind", "industrial"]],
109 paint: {
110 "fill-color": t.industrial
111 }
112 },
113 {
114 id: "landuse_school",
115 type: "fill",
116 source,
117 "source-layer": "landuse",
118 filter: ["any", ["in", "pmap:kind", "school", "university", "college"]],
119 paint: {
120 "fill-color": t.school
121 }
122 },
123 {
124 id: "landuse_beach",
125 type: "fill",
126 source,
127 "source-layer": "landuse",
128 filter: ["any", ["in", "pmap:kind", "beach"]],
129 paint: {
130 "fill-color": t.beach
131 }
132 },
133 {
134 id: "landuse_zoo",
135 type: "fill",
136 source,
137 "source-layer": "landuse",
138 filter: ["any", ["in", "pmap:kind", "zoo"]],
139 paint: {
140 "fill-color": t.zoo
141 }
142 },
143 {
144 id: "landuse_military",
145 type: "fill",
146 source,
147 "source-layer": "landuse",
148 filter: [
149 "any",
150 ["in", "pmap:kind", "military", "naval_base", "airfield"]
151 ],
152 paint: {
153 "fill-color": t.zoo
154 }
155 },
156 {
157 id: "natural_wood",
158 type: "fill",
159 source,
160 "source-layer": "natural",
161 filter: ["any", ["in", "pmap:kind", "wood", "nature_reserve", "forest"]],
162 paint: {
163 "fill-color": [
164 "interpolate",
165 ["linear"],
166 ["zoom"],
167 0,
168 t.wood_a,
169 12,
170 t.wood_b
171 ]
172 }
173 },
174 {
175 id: "natural_scrub",
176 type: "fill",
177 source,
178 "source-layer": "natural",
179 filter: ["in", "pmap:kind", "scrub", "grassland", "grass"],
180 paint: {
181 "fill-color": [
182 "interpolate",
183 ["linear"],
184 ["zoom"],
185 0,
186 t.scrub_a,
187 12,
188 t.scrub_b
189 ]
190 }
191 },
192 {
193 id: "natural_glacier",
194 type: "fill",
195 source,
196 "source-layer": "natural",
197 filter: ["==", "pmap:kind", "glacier"],
198 paint: {
199 "fill-color": t.glacier
200 }
201 },
202 {
203 id: "natural_sand",
204 type: "fill",
205 source,
206 "source-layer": "natural",
207 filter: ["==", "pmap:kind", "sand"],
208 paint: {
209 "fill-color": t.sand
210 }
211 },
212 {
213 id: "landuse_aerodrome",
214 type: "fill",
215 source,
216 "source-layer": "landuse",
217 filter: ["any", ["in", "pmap:kind", "aerodrome"]],
218 paint: {
219 "fill-color": t.aerodrome
220 }
221 },
222 {
223 id: "transit_runway",
224 type: "line",
225 source,
226 "source-layer": "transit",
227 filter: ["any", ["in", "pmap:kind_detail", "runway"]],
228 paint: {
229 "line-color": t.runway,
230 "line-width": [
231 "interpolate",
232 ["exponential", 1.6],
233 ["zoom"],
234 10,
235 0,
236 12,
237 4,
238 18,
239 30
240 ]
241 }
242 },
243 {
244 id: "transit_taxiway",
245 type: "line",
246 source,
247 "source-layer": "transit",
248 minzoom: 13,
249 filter: ["any", ["in", "pmap:kind_detail", "taxiway"]],
250 paint: {
251 "line-color": t.runway,
252 "line-width": [
253 "interpolate",
254 ["exponential", 1.6],
255 ["zoom"],
256 13,
257 0,
258 13.5,
259 1,
260 15,
261 6
262 ]
263 }
264 },
265 {
266 id: "water",
267 type: "fill",
268 source,
269 "source-layer": "water",
270 paint: {
271 "fill-color": t.water
272 }
273 },
274 {
275 id: "physical_line_stream",
276 type: "line",
277 source,
278 "source-layer": "physical_line",
279 minzoom: 14,
280 filter: ["all", ["in", "pmap:kind", "stream"]],
281 paint: {
282 "line-color": t.water,
283 "line-width": 0.5
284 }
285 },
286 {
287 id: "physical_line_river",
288 type: "line",
289 source,
290 "source-layer": "physical_line",
291 minzoom: 9,
292 filter: ["all", ["in", "pmap:kind", "river"]],
293 paint: {
294 "line-color": t.water,
295 "line-width": [
296 "interpolate",
297 ["exponential", 1.6],
298 ["zoom"],
299 9,
300 0,
301 9.5,
302 1,
303 18,
304 12
305 ]
306 }
307 },
308 {
309 id: "landuse_pedestrian",
310 type: "fill",
311 source,
312 "source-layer": "landuse",
313 filter: ["any", ["==", "pmap:kind", "pedestrian"]],
314 paint: {
315 "fill-color": t.pedestrian
316 }
317 },
318 {
319 id: "landuse_pier",
320 type: "fill",
321 source,
322 "source-layer": "landuse",
323 filter: ["any", ["==", "pmap:kind", "pier"]],
324 paint: {
325 "fill-color": t.pier
326 }
327 },
328 {
329 id: "roads_tunnels_other_casing",
330 type: "line",
331 source,
332 "source-layer": "roads",
333 filter: [
334 "all",
335 ["<", "pmap:level", 0],
336 ["in", "pmap:kind", "other", "path"]
337 ],
338 paint: {
339 "line-color": t.tunnel_other_casing,
340 "line-gap-width": [
341 "interpolate",
342 ["exponential", 1.6],
343 ["zoom"],
344 14,
345 0,
346 20,
347 7
348 ]
349 }
350 },
351 {
352 id: "roads_tunnels_minor_casing",
353 type: "line",
354 source,
355 "source-layer": "roads",
356 filter: [
357 "all",
358 ["<", "pmap:level", 0],
359 ["==", "pmap:kind", "minor_road"]
360 ],
361 paint: {
362 "line-color": t.tunnel_minor_casing,
363 "line-dasharray": [3, 2],
364 "line-gap-width": [
365 "interpolate",
366 ["exponential", 1.6],
367 ["zoom"],
368 11,
369 0,
370 12.5,
371 0.5,
372 15,
373 2,
374 18,
375 11
376 ],
377 "line-width": [
378 "interpolate",
379 ["exponential", 1.6],
380 ["zoom"],
381 12,
382 0,
383 12.5,
384 1
385 ]
386 }
387 },
388 {
389 id: "roads_tunnels_link_casing",
390 type: "line",
391 source,
392 "source-layer": "roads",
393 filter: ["all", ["<", "pmap:level", 0], ["==", "pmap:link", 1]],
394 paint: {
395 "line-color": t.tunnel_link_casing,
396 "line-dasharray": [3, 2],
397 "line-gap-width": [
398 "interpolate",
399 ["exponential", 1.6],
400 ["zoom"],
401 13,
402 0,
403 13.5,
404 1,
405 18,
406 11
407 ],
408 "line-width": [
409 "interpolate",
410 ["exponential", 1.6],
411 ["zoom"],
412 12,
413 0,
414 12.5,
415 1
416 ]
417 }
418 },
419 {
420 id: "roads_tunnels_medium_casing",
421 type: "line",
422 source,
423 "source-layer": "roads",
424 filter: [
425 "all",
426 ["<", "pmap:level", 0],
427 ["==", "pmap:kind", "medium_road"]
428 ],
429 paint: {
430 "line-color": t.tunnel_medium_casing,
431 "line-dasharray": [3, 2],
432 "line-gap-width": [
433 "interpolate",
434 ["exponential", 1.6],
435 ["zoom"],
436 7,
437 0,
438 7.5,
439 0.5,
440 18,
441 13
442 ],
443 "line-width": [
444 "interpolate",
445 ["exponential", 1.6],
446 ["zoom"],
447 10,
448 0,
449 10.5,
450 1
451 ]
452 }
453 },
454 {
455 id: "roads_tunnels_major_casing",
456 type: "line",
457 source,
458 "source-layer": "roads",
459 filter: [
460 "all",
461 ["<", "pmap:level", 0],
462 ["==", "pmap:kind", "major_road"]
463 ],
464 paint: {
465 "line-color": t.tunnel_major_casing,
466 "line-dasharray": [3, 2],
467 "line-gap-width": [
468 "interpolate",
469 ["exponential", 1.6],
470 ["zoom"],
471 7,
472 0,
473 7.5,
474 0.5,
475 18,
476 13
477 ],
478 "line-width": [
479 "interpolate",
480 ["exponential", 1.6],
481 ["zoom"],
482 9,
483 0,
484 9.5,
485 1
486 ]
487 }
488 },
489 {
490 id: "roads_tunnels_highway_casing",
491 type: "line",
492 source,
493 "source-layer": "roads",
494 filter: [
495 "all",
496 ["<", "pmap:level", 0],
497 ["==", "pmap:kind", "highway"],
498 ["!=", "pmap:link", 1]
499 ],
500 paint: {
501 "line-color": t.tunnel_highway_casing,
502 "line-dasharray": [6, 0.5],
503 "line-gap-width": [
504 "interpolate",
505 ["exponential", 1.6],
506 ["zoom"],
507 3,
508 0,
509 3.5,
510 0.5,
511 18,
512 15
513 ],
514 "line-width": [
515 "interpolate",
516 ["exponential", 1.6],
517 ["zoom"],
518 7,
519 0,
520 7.5,
521 1,
522 20,
523 15
524 ]
525 }
526 },
527 {
528 id: "roads_tunnels_other",
529 type: "line",
530 source,
531 "source-layer": "roads",
532 filter: [
533 "all",
534 ["<", "pmap:level", 0],
535 ["in", "pmap:kind", "other", "path"]
536 ],
537 paint: {
538 "line-color": t.tunnel_other,
539 "line-dasharray": [4.5, 0.5],
540 "line-width": [
541 "interpolate",
542 ["exponential", 1.6],
543 ["zoom"],
544 14,
545 0,
546 20,
547 7
548 ]
549 }
550 },
551 {
552 id: "roads_tunnels_minor",
553 type: "line",
554 source,
555 "source-layer": "roads",
556 filter: [
557 "all",
558 ["<", "pmap:level", 0],
559 ["==", "pmap:kind", "minor_road"]
560 ],
561 paint: {
562 "line-color": t.tunnel_minor,
563 "line-width": [
564 "interpolate",
565 ["exponential", 1.6],
566 ["zoom"],
567 11,
568 0,
569 12.5,
570 0.5,
571 15,
572 2,
573 18,
574 11
575 ]
576 }
577 },
578 {
579 id: "roads_tunnels_link",
580 type: "line",
581 source,
582 "source-layer": "roads",
583 filter: ["all", ["<", "pmap:level", 0], ["==", "pmap:link", 1]],
584 paint: {
585 "line-color": t.tunnel_minor,
586 "line-width": [
587 "interpolate",
588 ["exponential", 1.6],
589 ["zoom"],
590 13,
591 0,
592 13.5,
593 1,
594 18,
595 11
596 ]
597 }
598 },
599 {
600 id: "roads_tunnels_medium",
601 type: "line",
602 source,
603 "source-layer": "roads",
604 filter: [
605 "all",
606 ["<", "pmap:level", 0],
607 ["==", "pmap:kind", "medium_road"]
608 ],
609 paint: {
610 "line-color": t.tunnel_medium,
611 "line-width": [
612 "interpolate",
613 ["exponential", 1.6],
614 ["zoom"],
615 7,
616 0,
617 12,
618 1.2,
619 15,
620 3,
621 18,
622 13
623 ]
624 }
625 },
626 {
627 id: "roads_tunnels_major",
628 type: "line",
629 source,
630 "source-layer": "roads",
631 filter: [
632 "all",
633 ["<", "pmap:level", 0],
634 ["==", "pmap:kind", "major_road"]
635 ],
636 paint: {
637 "line-color": t.tunnel_major,
638 "line-width": [
639 "interpolate",
640 ["exponential", 1.6],
641 ["zoom"],
642 6,
643 0,
644 12,
645 1.6,
646 15,
647 3,
648 18,
649 13
650 ]
651 }
652 },
653 {
654 id: "roads_tunnels_highway",
655 type: "line",
656 source,
657 "source-layer": "roads",
658 filter: [
659 "all",
660 ["<", "pmap:level", 0],
661 ["==", "pmap:kind", "highway"],
662 ["!=", "pmap:link", 1]
663 ],
664 paint: {
665 "line-color": t.tunnel_highway,
666 "line-width": [
667 "interpolate",
668 ["exponential", 1.6],
669 ["zoom"],
670 3,
671 0,
672 6,
673 1.1,
674 12,
675 1.6,
676 15,
677 5,
678 18,
679 15
680 ]
681 }
682 },
683 {
684 id: "buildings",
685 type: "fill",
686 source,
687 "source-layer": "buildings",
688 paint: {
689 "fill-color": t.buildings,
690 "fill-opacity": 0.5
691 }
692 },
693 {
694 id: "transit_pier",
695 type: "line",
696 source,
697 "source-layer": "transit",
698 filter: ["any", ["==", "pmap:kind", "pier"]],
699 paint: {
700 "line-color": t.transit_pier,
701 "line-width": [
702 "interpolate",
703 ["exponential", 1.6],
704 ["zoom"],
705 12,
706 0,
707 12.5,
708 0.5,
709 20,
710 16
711 ]
712 }
713 },
714 {
715 id: "roads_minor_service_casing",
716 type: "line",
717 source,
718 "source-layer": "roads",
719 minzoom: 13,
720 filter: [
721 "all",
722 ["==", "pmap:level", 0],
723 ["==", "pmap:kind", "minor_road"],
724 ["==", "pmap:kind_detail", "service"]
725 ],
726 paint: {
727 "line-color": t.minor_service_casing,
728 "line-gap-width": [
729 "interpolate",
730 ["exponential", 1.6],
731 ["zoom"],
732 13,
733 0,
734 18,
735 8
736 ],
737 "line-width": [
738 "interpolate",
739 ["exponential", 1.6],
740 ["zoom"],
741 13,
742 0,
743 13.5,
744 0.8
745 ]
746 }
747 },
748 {
749 id: "roads_minor_casing",
750 type: "line",
751 source,
752 "source-layer": "roads",
753 filter: [
754 "all",
755 ["==", "pmap:level", 0],
756 ["==", "pmap:kind", "minor_road"],
757 ["!=", "pmap:kind_detail", "service"]
758 ],
759 paint: {
760 "line-color": t.minor_casing,
761 "line-gap-width": [
762 "interpolate",
763 ["exponential", 1.6],
764 ["zoom"],
765 11,
766 0,
767 12.5,
768 0.5,
769 15,
770 2,
771 18,
772 11
773 ],
774 "line-width": [
775 "interpolate",
776 ["exponential", 1.6],
777 ["zoom"],
778 12,
779 0,
780 12.5,
781 1
782 ]
783 }
784 },
785 {
786 id: "roads_link_casing",
787 type: "line",
788 source,
789 "source-layer": "roads",
790 minzoom: 13,
791 filter: ["all", ["==", "pmap:link", 1]],
792 paint: {
793 "line-color": t.minor_casing,
794 "line-gap-width": [
795 "interpolate",
796 ["exponential", 1.6],
797 ["zoom"],
798 13,
799 0,
800 13.5,
801 1,
802 18,
803 11
804 ],
805 "line-width": [
806 "interpolate",
807 ["exponential", 1.6],
808 ["zoom"],
809 13,
810 0,
811 13.5,
812 1.5
813 ]
814 }
815 },
816 {
817 id: "roads_medium_casing",
818 type: "line",
819 source,
820 "source-layer": "roads",
821 filter: [
822 "all",
823 ["==", "pmap:level", 0],
824 ["==", "pmap:kind", "medium_road"]
825 ],
826 paint: {
827 "line-color": t.medium_casing,
828 "line-gap-width": [
829 "interpolate",
830 ["exponential", 1.6],
831 ["zoom"],
832 7,
833 0,
834 12,
835 1.2,
836 15,
837 3,
838 18,
839 13
840 ],
841 "line-width": [
842 "interpolate",
843 ["exponential", 1.6],
844 ["zoom"],
845 10,
846 0,
847 10.5,
848 1.5
849 ]
850 }
851 },
852 {
853 id: "roads_major_casing_late",
854 type: "line",
855 source,
856 "source-layer": "roads",
857 minzoom: 12,
858 filter: [
859 "all",
860 ["==", "pmap:level", 0],
861 ["==", "pmap:kind", "major_road"]
862 ],
863 paint: {
864 "line-color": t.major_casing_late,
865 "line-gap-width": [
866 "interpolate",
867 ["exponential", 1.6],
868 ["zoom"],
869 6,
870 0,
871 12,
872 1.6,
873 15,
874 3,
875 18,
876 13
877 ],
878 "line-width": [
879 "interpolate",
880 ["exponential", 1.6],
881 ["zoom"],
882 9,
883 0,
884 9.5,
885 1
886 ]
887 }
888 },
889 {
890 id: "roads_highway_casing_late",
891 type: "line",
892 source,
893 "source-layer": "roads",
894 minzoom: 12,
895 filter: [
896 "all",
897 ["==", "pmap:level", 0],
898 ["==", "pmap:kind", "highway"],
899 ["!=", "pmap:link", 1]
900 ],
901 paint: {
902 "line-color": t.highway_casing_late,
903 "line-gap-width": [
904 "interpolate",
905 ["exponential", 1.6],
906 ["zoom"],
907 3,
908 0,
909 3.5,
910 0.5,
911 18,
912 15
913 ],
914 "line-width": [
915 "interpolate",
916 ["exponential", 1.6],
917 ["zoom"],
918 7,
919 0,
920 7.5,
921 1,
922 20,
923 15
924 ]
925 }
926 },
927 {
928 id: "roads_other",
929 type: "line",
930 source,
931 "source-layer": "roads",
932 filter: [
933 "all",
934 ["==", "pmap:level", 0],
935 ["in", "pmap:kind", "other", "path"]
936 ],
937 paint: {
938 "line-color": t.other,
939 "line-dasharray": [3, 1],
940 "line-width": [
941 "interpolate",
942 ["exponential", 1.6],
943 ["zoom"],
944 14,
945 0,
946 20,
947 7
948 ]
949 }
950 },
951 {
952 id: "roads_link",
953 type: "line",
954 source,
955 "source-layer": "roads",
956 filter: ["all", ["==", "pmap:link", 1]],
957 paint: {
958 "line-color": t.link,
959 "line-width": [
960 "interpolate",
961 ["exponential", 1.6],
962 ["zoom"],
963 13,
964 0,
965 13.5,
966 1,
967 18,
968 11
969 ]
970 }
971 },
972 {
973 id: "roads_minor_service",
974 type: "line",
975 source,
976 "source-layer": "roads",
977 filter: [
978 "all",
979 ["==", "pmap:level", 0],
980 ["==", "pmap:kind", "minor_road"],
981 ["==", "pmap:kind_detail", "service"]
982 ],
983 paint: {
984 "line-color": t.minor_service,
985 "line-width": [
986 "interpolate",
987 ["exponential", 1.6],
988 ["zoom"],
989 13,
990 0,
991 18,
992 8
993 ]
994 }
995 },
996 {
997 id: "roads_minor",
998 type: "line",
999 source,
1000 "source-layer": "roads",
1001 filter: [
1002 "all",
1003 ["==", "pmap:level", 0],
1004 ["==", "pmap:kind", "minor_road"],
1005 ["!=", "pmap:kind_detail", "service"]
1006 ],
1007 paint: {
1008 "line-color": [
1009 "interpolate",
1010 ["exponential", 1.6],
1011 ["zoom"],
1012 11,
1013 t.minor_a,
1014 16,
1015 t.minor_b
1016 ],
1017 "line-width": [
1018 "interpolate",
1019 ["exponential", 1.6],
1020 ["zoom"],
1021 11,
1022 0,
1023 12.5,
1024 0.5,
1025 15,
1026 2,
1027 18,
1028 11
1029 ]
1030 }
1031 },
1032 {
1033 id: "roads_medium",
1034 type: "line",
1035 source,
1036 "source-layer": "roads",
1037 filter: [
1038 "all",
1039 ["==", "pmap:level", 0],
1040 ["==", "pmap:kind", "medium_road"]
1041 ],
1042 paint: {
1043 "line-color": t.medium,
1044 "line-width": [
1045 "interpolate",
1046 ["exponential", 1.6],
1047 ["zoom"],
1048 7,
1049 0,
1050 12,
1051 1.2,
1052 15,
1053 3,
1054 18,
1055 13
1056 ]
1057 }
1058 },
1059 {
1060 id: "roads_major_casing_early",
1061 type: "line",
1062 source,
1063 "source-layer": "roads",
1064 maxzoom: 12,
1065 filter: [
1066 "all",
1067 ["==", "pmap:level", 0],
1068 ["==", "pmap:kind", "major_road"]
1069 ],
1070 paint: {
1071 "line-color": t.major_casing_early,
1072 "line-gap-width": [
1073 "interpolate",
1074 ["exponential", 1.6],
1075 ["zoom"],
1076 7,
1077 0,
1078 7.5,
1079 0.5,
1080 18,
1081 13
1082 ],
1083 "line-width": [
1084 "interpolate",
1085 ["exponential", 1.6],
1086 ["zoom"],
1087 9,
1088 0,
1089 9.5,
1090 1
1091 ]
1092 }
1093 },
1094 {
1095 id: "roads_major",
1096 type: "line",
1097 source,
1098 "source-layer": "roads",
1099 filter: [
1100 "all",
1101 ["==", "pmap:level", 0],
1102 ["==", "pmap:kind", "major_road"]
1103 ],
1104 paint: {
1105 "line-color": t.major,
1106 "line-width": [
1107 "interpolate",
1108 ["exponential", 1.6],
1109 ["zoom"],
1110 6,
1111 0,
1112 12,
1113 1.6,
1114 15,
1115 3,
1116 18,
1117 13
1118 ]
1119 }
1120 },
1121 {
1122 id: "roads_highway_casing_early",
1123 type: "line",
1124 source,
1125 "source-layer": "roads",
1126 maxzoom: 12,
1127 filter: [
1128 "all",
1129 ["==", "pmap:level", 0],
1130 ["==", "pmap:kind", "highway"],
1131 ["!=", "pmap:link", 1]
1132 ],
1133 paint: {
1134 "line-color": t.highway_casing_early,
1135 "line-gap-width": [
1136 "interpolate",
1137 ["exponential", 1.6],
1138 ["zoom"],
1139 3,
1140 0,
1141 3.5,
1142 0.5,
1143 18,
1144 15
1145 ],
1146 "line-width": [
1147 "interpolate",
1148 ["exponential", 1.6],
1149 ["zoom"],
1150 7,
1151 0,
1152 7.5,
1153 1
1154 ]
1155 }
1156 },
1157 {
1158 id: "roads_highway",
1159 type: "line",
1160 source,
1161 "source-layer": "roads",
1162 filter: [
1163 "all",
1164 ["==", "pmap:level", 0],
1165 ["==", "pmap:kind", "highway"],
1166 ["!=", "pmap:link", 1]
1167 ],
1168 paint: {
1169 "line-color": t.highway,
1170 "line-width": [
1171 "interpolate",
1172 ["exponential", 1.6],
1173 ["zoom"],
1174 3,
1175 0,
1176 6,
1177 1.1,
1178 12,
1179 1.6,
1180 15,
1181 5,
1182 18,
1183 15
1184 ]
1185 }
1186 },
1187 {
1188 id: "transit_railway",
1189 type: "line",
1190 source,
1191 "source-layer": "transit",
1192 filter: ["all", ["==", "pmap:kind", "rail"]],
1193 paint: {
1194 "line-dasharray": [0.3, 0.75],
1195 "line-opacity": 0.5,
1196 "line-color": t.railway,
1197 "line-width": [
1198 "interpolate",
1199 ["exponential", 1.6],
1200 ["zoom"],
1201 3,
1202 0,
1203 6,
1204 0.15,
1205 18,
1206 9
1207 ]
1208 }
1209 },
1210 {
1211 id: "boundaries_country",
1212 type: "line",
1213 source,
1214 "source-layer": "boundaries",
1215 filter: ["<=", "pmap:min_admin_level", 2],
1216 paint: {
1217 "line-color": t.boundaries,
1218 "line-width": 1,
1219 "line-dasharray": [3, 2]
1220 }
1221 },
1222 {
1223 id: "boundaries",
1224 type: "line",
1225 source,
1226 "source-layer": "boundaries",
1227 filter: [">", "pmap:min_admin_level", 2],
1228 paint: {
1229 "line-color": t.boundaries,
1230 "line-width": 0.5,
1231 "line-dasharray": [3, 2]
1232 }
1233 },
1234 {
1235 id: "roads_bridges_other_casing",
1236 type: "line",
1237 source,
1238 "source-layer": "roads",
1239 minzoom: 12,
1240 filter: [
1241 "all",
1242 [">", "pmap:level", 0],
1243 ["in", "pmap:kind", "other", "path"]
1244 ],
1245 paint: {
1246 "line-color": t.bridges_other_casing,
1247 "line-gap-width": [
1248 "interpolate",
1249 ["exponential", 1.6],
1250 ["zoom"],
1251 14,
1252 0,
1253 20,
1254 7
1255 ]
1256 }
1257 },
1258 {
1259 id: "roads_bridges_link_casing",
1260 type: "line",
1261 source,
1262 "source-layer": "roads",
1263 minzoom: 12,
1264 filter: ["all", [">", "pmap:level", 0], ["==", "pmap:link", 1]],
1265 paint: {
1266 "line-color": t.bridges_minor_casing,
1267 "line-gap-width": [
1268 "interpolate",
1269 ["exponential", 1.6],
1270 ["zoom"],
1271 13,
1272 0,
1273 13.5,
1274 1,
1275 18,
1276 11
1277 ],
1278 "line-width": [
1279 "interpolate",
1280 ["exponential", 1.6],
1281 ["zoom"],
1282 12,
1283 0,
1284 12.5,
1285 1.5
1286 ]
1287 }
1288 },
1289 {
1290 id: "roads_bridges_minor_casing",
1291 type: "line",
1292 source,
1293 "source-layer": "roads",
1294 minzoom: 12,
1295 filter: [
1296 "all",
1297 [">", "pmap:level", 0],
1298 ["==", "pmap:kind", "minor_road"]
1299 ],
1300 paint: {
1301 "line-color": t.bridges_minor_casing,
1302 "line-gap-width": [
1303 "interpolate",
1304 ["exponential", 1.6],
1305 ["zoom"],
1306 11,
1307 0,
1308 12.5,
1309 0.5,
1310 15,
1311 2,
1312 18,
1313 11
1314 ],
1315 "line-width": [
1316 "interpolate",
1317 ["exponential", 1.6],
1318 ["zoom"],
1319 13,
1320 0,
1321 13.5,
1322 0.8
1323 ]
1324 }
1325 },
1326 {
1327 id: "roads_bridges_medium_casing",
1328 type: "line",
1329 source,
1330 "source-layer": "roads",
1331 minzoom: 12,
1332 filter: [
1333 "all",
1334 [">", "pmap:level", 0],
1335 ["==", "pmap:kind", "medium_road"]
1336 ],
1337 paint: {
1338 "line-color": t.bridges_medium_casing,
1339 "line-gap-width": [
1340 "interpolate",
1341 ["exponential", 1.6],
1342 ["zoom"],
1343 7,
1344 0,
1345 12,
1346 1.2,
1347 15,
1348 3,
1349 18,
1350 13
1351 ],
1352 "line-width": [
1353 "interpolate",
1354 ["exponential", 1.6],
1355 ["zoom"],
1356 10,
1357 0,
1358 10.5,
1359 1.5
1360 ]
1361 }
1362 },
1363 {
1364 id: "roads_bridges_major_casing",
1365 type: "line",
1366 source,
1367 "source-layer": "roads",
1368 minzoom: 12,
1369 filter: [
1370 "all",
1371 [">", "pmap:level", 0],
1372 ["==", "pmap:kind", "major_road"]
1373 ],
1374 paint: {
1375 "line-color": t.bridges_major_casing,
1376 "line-gap-width": [
1377 "interpolate",
1378 ["exponential", 1.6],
1379 ["zoom"],
1380 7,
1381 0,
1382 7.5,
1383 0.5,
1384 18,
1385 10
1386 ],
1387 "line-width": [
1388 "interpolate",
1389 ["exponential", 1.6],
1390 ["zoom"],
1391 9,
1392 0,
1393 9.5,
1394 1.5
1395 ]
1396 }
1397 },
1398 {
1399 id: "roads_bridges_other",
1400 type: "line",
1401 source,
1402 "source-layer": "roads",
1403 minzoom: 12,
1404 filter: [
1405 "all",
1406 [">", "pmap:level", 0],
1407 ["in", "pmap:kind", "other", "path"]
1408 ],
1409 paint: {
1410 "line-color": t.bridges_other,
1411 "line-dasharray": [2, 1],
1412 "line-width": [
1413 "interpolate",
1414 ["exponential", 1.6],
1415 ["zoom"],
1416 14,
1417 0,
1418 20,
1419 7
1420 ]
1421 }
1422 },
1423 {
1424 id: "roads_bridges_minor",
1425 type: "line",
1426 source,
1427 "source-layer": "roads",
1428 minzoom: 12,
1429 filter: [
1430 "all",
1431 [">", "pmap:level", 0],
1432 ["==", "pmap:kind", "minor_road"]
1433 ],
1434 paint: {
1435 "line-color": t.bridges_minor,
1436 "line-width": [
1437 "interpolate",
1438 ["exponential", 1.6],
1439 ["zoom"],
1440 11,
1441 0,
1442 12.5,
1443 0.5,
1444 15,
1445 2,
1446 18,
1447 11
1448 ]
1449 }
1450 },
1451 {
1452 id: "roads_bridges_link",
1453 type: "line",
1454 source,
1455 "source-layer": "roads",
1456 minzoom: 12,
1457 filter: ["all", [">", "pmap:level", 0], ["==", "pmap:link", 1]],
1458 paint: {
1459 "line-color": t.bridges_minor,
1460 "line-width": [
1461 "interpolate",
1462 ["exponential", 1.6],
1463 ["zoom"],
1464 13,
1465 0,
1466 13.5,
1467 1,
1468 18,
1469 11
1470 ]
1471 }
1472 },
1473 {
1474 id: "roads_bridges_medium",
1475 type: "line",
1476 source,
1477 "source-layer": "roads",
1478 minzoom: 12,
1479 filter: [
1480 "all",
1481 [">", "pmap:level", 0],
1482 ["==", "pmap:kind", "medium_road"]
1483 ],
1484 paint: {
1485 "line-color": t.bridges_medium,
1486 "line-width": [
1487 "interpolate",
1488 ["exponential", 1.6],
1489 ["zoom"],
1490 7,
1491 0,
1492 12,
1493 1.2,
1494 15,
1495 3,
1496 18,
1497 13
1498 ]
1499 }
1500 },
1501 {
1502 id: "roads_bridges_major",
1503 type: "line",
1504 source,
1505 "source-layer": "roads",
1506 minzoom: 12,
1507 filter: [
1508 "all",
1509 [">", "pmap:level", 0],
1510 ["==", "pmap:kind", "major_road"]
1511 ],
1512 paint: {
1513 "line-color": t.bridges_major,
1514 "line-width": [
1515 "interpolate",
1516 ["exponential", 1.6],
1517 ["zoom"],
1518 6,
1519 0,
1520 12,
1521 1.6,
1522 15,
1523 3,
1524 18,
1525 13
1526 ]
1527 }
1528 },
1529 {
1530 id: "roads_bridges_highway_casing",
1531 type: "line",
1532 source,
1533 "source-layer": "roads",
1534 minzoom: 12,
1535 filter: [
1536 "all",
1537 [">", "pmap:level", 0],
1538 ["==", "pmap:kind", "highway"],
1539 ["!=", "pmap:link", 1]
1540 ],
1541 paint: {
1542 "line-color": t.bridges_highway_casing,
1543 "line-gap-width": [
1544 "interpolate",
1545 ["exponential", 1.6],
1546 ["zoom"],
1547 3,
1548 0,
1549 3.5,
1550 0.5,
1551 18,
1552 15
1553 ],
1554 "line-width": [
1555 "interpolate",
1556 ["exponential", 1.6],
1557 ["zoom"],
1558 7,
1559 0,
1560 7.5,
1561 1,
1562 20,
1563 15
1564 ]
1565 }
1566 },
1567 {
1568 id: "roads_bridges_highway",
1569 type: "line",
1570 source,
1571 "source-layer": "roads",
1572 filter: [
1573 "all",
1574 [">", "pmap:level", 0],
1575 ["==", "pmap:kind", "highway"],
1576 ["!=", "pmap:link", 1]
1577 ],
1578 paint: {
1579 "line-color": t.bridges_highway,
1580 "line-width": [
1581 "interpolate",
1582 ["exponential", 1.6],
1583 ["zoom"],
1584 3,
1585 0,
1586 6,
1587 1.1,
1588 12,
1589 1.6,
1590 15,
1591 5,
1592 18,
1593 15
1594 ]
1595 }
1596 }
1597 ];
1598 }
1599 function labels_layers(source, t) {
1600 return [
1601 {
1602 id: "physical_line_waterway_label",
1603 type: "symbol",
1604 source,
1605 "source-layer": "physical_line",
1606 minzoom: 13,
1607 filter: ["all", ["in", "pmap:kind", "river", "stream"]],
1608 layout: {
1609 "symbol-placement": "line",
1610 "text-font": ["Noto Sans Regular"],
1611 "text-field": ["get", "name"],
1612 "text-size": 12,
1613 "text-letter-spacing": 0.3
1614 },
1615 paint: {
1616 "text-color": t.waterway_label
1617 }
1618 },
1619 {
1620 id: "physical_point_peak",
1621 type: "symbol",
1622 source,
1623 "source-layer": "physical_point",
1624 filter: ["any", ["==", "pmap:kind", "peak"]],
1625 layout: {
1626 "text-font": ["Noto Sans Italic"],
1627 "text-field": ["get", "name"],
1628 "text-size": ["interpolate", ["linear"], ["zoom"], 10, 8, 16, 12],
1629 "text-letter-spacing": 0.1,
1630 "text-max-width": 9
1631 },
1632 paint: {
1633 "text-color": t.peak_label,
1634 "text-halo-width": 1.5
1635 }
1636 },
1637 {
1638 id: "roads_labels_minor",
1639 type: "symbol",
1640 source,
1641 "source-layer": "roads",
1642 minzoom: 15,
1643 filter: ["any", ["in", "pmap:kind", "minor_road", "other", "path"]],
1644 layout: {
1645 "symbol-sort-key": ["get", "pmap:min_zoom"],
1646 "symbol-placement": "line",
1647 "text-font": ["Noto Sans Regular"],
1648 "text-field": ["get", "name"],
1649 "text-size": 12
1650 },
1651 paint: {
1652 "text-color": t.roads_label_minor,
1653 "text-halo-color": t.roads_label_minor_halo,
1654 "text-halo-width": 2
1655 }
1656 },
1657 {
1658 id: "physical_point_ocean",
1659 type: "symbol",
1660 source,
1661 "source-layer": "physical_point",
1662 filter: [
1663 "any",
1664 [
1665 "in",
1666 "pmap:kind",
1667 "sea",
1668 "ocean",
1669 "lake",
1670 "water",
1671 "bay",
1672 "strait",
1673 "fjord"
1674 ]
1675 ],
1676 layout: {
1677 "text-font": ["Noto Sans Medium"],
1678 "text-field": ["get", "name"],
1679 "text-size": ["interpolate", ["linear"], ["zoom"], 3, 10, 10, 12],
1680 "text-letter-spacing": 0.1,
1681 "text-max-width": 9,
1682 "text-transform": "uppercase"
1683 },
1684 paint: {
1685 "text-color": t.ocean_label
1686 }
1687 },
1688 {
1689 id: "physical_point_lakes",
1690 type: "symbol",
1691 source,
1692 "source-layer": "physical_point",
1693 filter: ["any", ["in", "pmap:kind", "lake", "water"]],
1694 layout: {
1695 "text-font": ["Noto Sans Medium"],
1696 "text-field": ["get", "name"],
1697 "text-size": ["interpolate", ["linear"], ["zoom"], 3, 0, 6, 12, 10, 12],
1698 "text-letter-spacing": 0.1,
1699 "text-max-width": 9
1700 },
1701 paint: {
1702 "text-color": t.ocean_label
1703 }
1704 },
1705 {
1706 id: "roads_labels_major",
1707 type: "symbol",
1708 source,
1709 "source-layer": "roads",
1710 minzoom: 11,
1711 filter: [
1712 "any",
1713 ["in", "pmap:kind", "highway", "major_road", "medium_road"]
1714 ],
1715 layout: {
1716 "symbol-sort-key": ["get", "pmap:min_zoom"],
1717 "symbol-placement": "line",
1718 "text-font": ["Noto Sans Regular"],
1719 "text-field": ["get", "name"],
1720 "text-size": 12
1721 },
1722 paint: {
1723 "text-color": t.roads_label_major,
1724 "text-halo-color": t.roads_label_major_halo,
1725 "text-halo-width": 2
1726 }
1727 },
1728 {
1729 id: "places_subplace",
1730 type: "symbol",
1731 source,
1732 "source-layer": "places",
1733 filter: ["==", "pmap:kind", "neighbourhood"],
1734 layout: {
1735 "symbol-sort-key": ["get", "pmap:min_zoom"],
1736 "text-field": "{name}",
1737 "text-font": ["Noto Sans Regular"],
1738 "text-max-width": 7,
1739 "text-letter-spacing": 0.1,
1740 "text-padding": [
1741 "interpolate",
1742 ["linear"],
1743 ["zoom"],
1744 5,
1745 2,
1746 8,
1747 4,
1748 12,
1749 18,
1750 15,
1751 20
1752 ],
1753 "text-size": [
1754 "interpolate",
1755 ["exponential", 1.2],
1756 ["zoom"],
1757 11,
1758 8,
1759 14,
1760 14,
1761 18,
1762 24
1763 ],
1764 "text-transform": "uppercase"
1765 },
1766 paint: {
1767 "text-color": t.subplace_label,
1768 "text-halo-color": t.subplace_label_halo,
1769 "text-halo-width": 2
1770 }
1771 },
1772 {
1773 id: "pois_important",
1774 type: "symbol",
1775 source,
1776 "source-layer": "pois",
1777 filter: ["any", ["<", ["get", "pmap:min_zoom"], 13]],
1778 layout: {
1779 "symbol-sort-key": ["get", "pmap:min_zoom"],
1780 "text-font": ["Noto Sans Regular"],
1781 "text-field": ["get", "name"],
1782 "text-size": 11,
1783 "text-max-width": 9,
1784 "icon-padding": [
1785 "interpolate",
1786 ["linear"],
1787 ["zoom"],
1788 0,
1789 2,
1790 14,
1791 2,
1792 16,
1793 20,
1794 17,
1795 2,
1796 22,
1797 2
1798 ]
1799 },
1800 paint: {
1801 "text-color": t.subplace_label,
1802 "text-halo-color": t.subplace_label_halo,
1803 "text-halo-width": 1.5
1804 }
1805 },
1806 {
1807 id: "places_locality_circle",
1808 type: "circle",
1809 source,
1810 "source-layer": "places",
1811 filter: ["==", "pmap:kind", "locality"],
1812 paint: {
1813 "circle-radius": 2,
1814 "circle-stroke-width": 1.5,
1815 "circle-stroke-color": t.city_circle_stroke,
1816 "circle-color": t.city_circle,
1817 "circle-translate": [-6, 0]
1818 },
1819 maxzoom: 8
1820 },
1821 {
1822 id: "places_locality",
1823 type: "symbol",
1824 source,
1825 "source-layer": "places",
1826 filter: ["==", "pmap:kind", "locality"],
1827 layout: {
1828 "text-field": "{name}",
1829 "text-font": [
1830 "case",
1831 ["<=", ["get", "pmap:min_zoom"], 5],
1832 ["literal", ["Noto Sans Medium"]],
1833 ["literal", ["Noto Sans Regular"]]
1834 ],
1835 "text-padding": [
1836 "interpolate",
1837 ["linear"],
1838 ["zoom"],
1839 5,
1840 3,
1841 8,
1842 7,
1843 12,
1844 11
1845 ],
1846 "text-size": [
1847 "interpolate",
1848 ["linear"],
1849 ["zoom"],
1850 2,
1851 [
1852 "case",
1853 ["<", ["get", "pmap:population_rank"], 13],
1854 8,
1855 [">=", ["get", "pmap:population_rank"], 13],
1856 13,
1857 0
1858 ],
1859 4,
1860 [
1861 "case",
1862 ["<", ["get", "pmap:population_rank"], 13],
1863 10,
1864 [">=", ["get", "pmap:population_rank"], 13],
1865 15,
1866 0
1867 ],
1868 6,
1869 [
1870 "case",
1871 ["<", ["get", "pmap:population_rank"], 12],
1872 11,
1873 [">=", ["get", "pmap:population_rank"], 12],
1874 17,
1875 0
1876 ],
1877 8,
1878 [
1879 "case",
1880 ["<", ["get", "pmap:population_rank"], 11],
1881 11,
1882 [">=", ["get", "pmap:population_rank"], 11],
1883 18,
1884 0
1885 ],
1886 10,
1887 [
1888 "case",
1889 ["<", ["get", "pmap:population_rank"], 9],
1890 12,
1891 [">=", ["get", "pmap:population_rank"], 9],
1892 20,
1893 0
1894 ],
1895 15,
1896 [
1897 "case",
1898 ["<", ["get", "pmap:population_rank"], 8],
1899 12,
1900 [">=", ["get", "pmap:population_rank"], 8],
1901 22,
1902 0
1903 ]
1904 ],
1905 "icon-padding": [
1906 "interpolate",
1907 ["linear"],
1908 ["zoom"],
1909 0,
1910 2,
1911 8,
1912 4,
1913 10,
1914 8,
1915 12,
1916 6,
1917 22,
1918 2
1919 ],
1920 "text-anchor": ["step", ["zoom"], "left", 8, "center"],
1921 "text-radial-offset": 0.2
1922 },
1923 paint: {
1924 "text-color": t.city_label,
1925 "text-halo-color": t.city_label_halo,
1926 "text-halo-width": 1
1927 }
1928 },
1929 {
1930 id: "places_region",
1931 type: "symbol",
1932 source,
1933 "source-layer": "places",
1934 filter: ["==", "pmap:kind", "region"],
1935 layout: {
1936 "symbol-sort-key": ["get", "pmap:min_zoom"],
1937 "text-field": [
1938 "step",
1939 ["zoom"],
1940 ["get", "name:short"],
1941 6,
1942 ["get", "name"]
1943 ],
1944 "text-font": ["Noto Sans Regular"],
1945 "text-size": ["interpolate", ["linear"], ["zoom"], 3, 11, 7, 16],
1946 "text-radial-offset": 0.2,
1947 "text-anchor": "center",
1948 "text-transform": "uppercase"
1949 },
1950 paint: {
1951 "text-color": t.state_label,
1952 "text-halo-color": t.state_label_halo,
1953 "text-halo-width": 2
1954 }
1955 },
1956 {
1957 id: "places_country",
1958 type: "symbol",
1959 source,
1960 "source-layer": "places",
1961 filter: ["==", "pmap:kind", "country"],
1962 layout: {
1963 "symbol-sort-key": ["get", "pmap:min_zoom"],
1964 "text-field": "{name}",
1965 "text-font": ["Noto Sans Medium"],
1966 "text-size": [
1967 "interpolate",
1968 ["linear"],
1969 ["zoom"],
1970 2,
1971 [
1972 "case",
1973 ["<", ["get", "pmap:population_rank"], 10],
1974 8,
1975 [">=", ["get", "pmap:population_rank"], 10],
1976 12,
1977 0
1978 ],
1979 6,
1980 [
1981 "case",
1982 ["<", ["get", "pmap:population_rank"], 8],
1983 10,
1984 [">=", ["get", "pmap:population_rank"], 8],
1985 18,
1986 0
1987 ],
1988 8,
1989 [
1990 "case",
1991 ["<", ["get", "pmap:population_rank"], 7],
1992 11,
1993 [">=", ["get", "pmap:population_rank"], 7],
1994 20,
1995 0
1996 ]
1997 ],
1998 "icon-padding": [
1999 "interpolate",
2000 ["linear"],
2001 ["zoom"],
2002 0,
2003 2,
2004 14,
2005 2,
2006 16,
2007 20,
2008 17,
2009 2,
2010 22,
2011 2
2012 ],
2013 "text-transform": "uppercase"
2014 },
2015 paint: {
2016 "text-color": t.country_label
2017 }
2018 }
2019 ];
2020 }
2021
2022 // src/themes.ts
2023 var CONTRAST = {
2024 background: "#dddddd",
2025 earth: "#ededed",
2026 park_a: "#bfc99c",
2027 park_b: "#bfc99c",
2028 hospital: "#ffeae8",
2029 industrial: "#f8ffed",
2030 school: "#f2fef9",
2031 wood_a: "#bfc99c",
2032 wood_b: "#bfc99c",
2033 pedestrian: "#eef0f0",
2034 scrub_a: "#bfc99c",
2035 scrub_b: "#bfc99c",
2036 glacier: "#ffffff",
2037 sand: "#ebe7da",
2038 beach: "#ebe7da",
2039 aerodrome: "#dbe7e7",
2040 runway: "#d1d9d9",
2041 water: "#84b7cf",
2042 pier: "#ededed",
2043 zoo: "#ebe6ed",
2044 military: "#ebe6ed",
2045 tunnel_other_casing: "#ffffff",
2046 tunnel_minor_casing: "#e2e2e2",
2047 tunnel_link_casing: "#e2e2e2",
2048 tunnel_medium_casing: "#e1e1e1",
2049 tunnel_major_casing: "#e3cfd3",
2050 tunnel_highway_casing: "#ebcea2",
2051 tunnel_other: "#f7f7f7",
2052 tunnel_minor: "#ebebeb",
2053 tunnel_link: "#ebebeb",
2054 tunnel_medium: "#ebebeb",
2055 tunnel_major: "#ebebeb",
2056 tunnel_highway: "#ebebeb",
2057 transit_pier: "#ededed",
2058 buildings: "#cbcece",
2059 minor_service_casing: "#e2e2e2",
2060 minor_casing: "#e2e2e2",
2061 link_casing: "#e2e2e2",
2062 medium_casing: "#e1e1e1",
2063 major_casing_late: "#e3cfd3",
2064 highway_casing_late: "#ebcea2",
2065 other: "#ffffff",
2066 minor_service: "#ffffff",
2067 minor_a: "#fff2bb",
2068 minor_b: "#fff2bb",
2069 link: "#fff2bb",
2070 medium: "#ffea94",
2071 major_casing_early: "#e3cfd3",
2072 major: "#ffdf59",
2073 highway_casing_early: "#ebcea2",
2074 highway: "#e9ac77",
2075 railway: "#b3bcc9",
2076 boundaries: "#5c4a6b",
2077 waterway_label: "#a4cae1",
2078 bridges_other_casing: "#ffffff",
2079 bridges_minor_casing: "#e2e2e2",
2080 bridges_link_casing: "#e1e1e1",
2081 bridges_medium_casing: "#e1e1e1",
2082 bridges_major_casing: "#e3cfd3",
2083 bridges_highway_casing: "#ebcea2",
2084 bridges_other: "#ffffff",
2085 bridges_minor: "#ffffff",
2086 bridges_link: "#e1e1e1",
2087 bridges_medium: "#ffffff",
2088 bridges_major: "#ffffff",
2089 bridges_highway: "#fefffc",
2090 roads_label_minor: "#91888b",
2091 roads_label_minor_halo: "#ffffff",
2092 roads_label_major: "#91888b",
2093 roads_label_major_halo: "#ffffff",
2094 ocean_label: "#ffffff",
2095 peak_label: "#61bb5b",
2096 subplace_label: "#757d91",
2097 subplace_label_halo: "#ffffff",
2098 city_circle: "#666666",
2099 city_circle_stroke: "#ffffff",
2100 city_label: "#3c3c3c",
2101 city_label_halo: "#ffffff",
2102 state_label: "#777777",
2103 state_label_halo: "#ffffff",
2104 country_label: "#9590aa"
2105 };
2106 var LIGHT = {
2107 background: "#cccccc",
2108 earth: "#e0e0e0",
2109 park_a: "#cfddd5",
2110 park_b: "#9cd3b4",
2111 hospital: "#e4dad9",
2112 industrial: "#d1dde1",
2113 school: "#e4ded7",
2114 wood_a: "#d0ded0",
2115 wood_b: "#a0d9a0",
2116 pedestrian: "#e3e0d4",
2117 scrub_a: "#cedcd7",
2118 scrub_b: "#99d2bb",
2119 glacier: "#e7e7e7",
2120 sand: "#e2e0d7",
2121 beach: "#e8e4d0",
2122 aerodrome: "#dadbdf",
2123 runway: "#e9e9ed",
2124 water: "#80deea",
2125 pier: "#e0e0e0",
2126 zoo: "#c6dcdc",
2127 military: "#dcdcdc",
2128 tunnel_other_casing: "#e0e0e0",
2129 tunnel_minor_casing: "#e0e0e0",
2130 tunnel_link_casing: "#e0e0e0",
2131 tunnel_medium_casing: "#e0e0e0",
2132 tunnel_major_casing: "#e0e0e0",
2133 tunnel_highway_casing: "#e0e0e0",
2134 tunnel_other: "#d5d5d5",
2135 tunnel_minor: "#d5d5d5",
2136 tunnel_link: "#d5d5d5",
2137 tunnel_medium: "#d5d5d5",
2138 tunnel_major: "#d5d5d5",
2139 tunnel_highway: "#d5d5d5",
2140 transit_pier: "#e0e0e0",
2141 buildings: "#cccccc",
2142 minor_service_casing: "#e0e0e0",
2143 minor_casing: "#e0e0e0",
2144 link_casing: "#e0e0e0",
2145 medium_casing: "#e0e0e0",
2146 major_casing_late: "#e0e0e0",
2147 highway_casing_late: "#e0e0e0",
2148 other: "#ebebeb",
2149 minor_service: "#ebebeb",
2150 minor_a: "#ebebeb",
2151 minor_b: "#ffffff",
2152 link: "#ffffff",
2153 medium: "#f5f5f5",
2154 major_casing_early: "#e0e0e0",
2155 major: "#ffffff",
2156 highway_casing_early: "#e0e0e0",
2157 highway: "#ffffff",
2158 railway: "#a7b1b3",
2159 boundaries: "#adadad",
2160 waterway_label: "#ffffff",
2161 bridges_other_casing: "#e0e0e0",
2162 bridges_minor_casing: "#e0e0e0",
2163 bridges_link_casing: "#e0e0e0",
2164 bridges_medium_casing: "#e0e0e0",
2165 bridges_major_casing: "#e0e0e0",
2166 bridges_highway_casing: "#e0e0e0",
2167 bridges_other: "#ebebeb",
2168 bridges_minor: "#ffffff",
2169 bridges_link: "#ffffff",
2170 bridges_medium: "#f0eded",
2171 bridges_major: "#f5f5f5",
2172 bridges_highway: "#ffffff",
2173 roads_label_minor: "#91888b",
2174 roads_label_minor_halo: "#ffffff",
2175 roads_label_major: "#938a8d",
2176 roads_label_major_halo: "#ffffff",
2177 ocean_label: "#ffffff",
2178 peak_label: "#7e9aa0",
2179 subplace_label: "#8f8f8f",
2180 subplace_label_halo: "#e0e0e0",
2181 city_circle: "#ffffff",
2182 city_circle_stroke: "#a3a3a3",
2183 city_label: "#5c5c5c",
2184 city_label_halo: "#e0e0e0",
2185 state_label: "#b3b3b3",
2186 state_label_halo: "#e0e0e0",
2187 country_label: "#a3a3a3"
2188 };
2189 var DARK = {
2190 background: "#34373d",
2191 earth: "#1f1f1f",
2192 park_a: "#232325",
2193 park_b: "#232325",
2194 hospital: "#252424",
2195 industrial: "#222222",
2196 school: "#262323",
2197 wood_a: "#202121",
2198 wood_b: "#202121",
2199 pedestrian: "#1e1e1e",
2200 scrub_a: "#222323",
2201 scrub_b: "#222323",
2202 glacier: "#1c1c1c",
2203 sand: "#212123",
2204 beach: "#28282a",
2205 aerodrome: "#1e1e1e",
2206 runway: "#333333",
2207 water: "#34373d",
2208 pier: "#222222",
2209 zoo: "#222323",
2210 military: "#242323",
2211 tunnel_other_casing: "#141414",
2212 tunnel_minor_casing: "#141414",
2213 tunnel_link_casing: "#141414",
2214 tunnel_medium_casing: "#141414",
2215 tunnel_major_casing: "#141414",
2216 tunnel_highway_casing: "#141414",
2217 tunnel_other: "#292929",
2218 tunnel_minor: "#292929",
2219 tunnel_link: "#292929",
2220 tunnel_medium: "#292929",
2221 tunnel_major: "#292929",
2222 tunnel_highway: "#292929",
2223 transit_pier: "#333333",
2224 buildings: "#111111",
2225 minor_service_casing: "#1f1f1f",
2226 minor_casing: "#1f1f1f",
2227 link_casing: "#1f1f1f",
2228 medium_casing: "#1f1f1f",
2229 major_casing_late: "#1f1f1f",
2230 highway_casing_late: "#1f1f1f",
2231 other: "#333333",
2232 minor_service: "#333333",
2233 minor_a: "#3d3d3d",
2234 minor_b: "#333333",
2235 link: "#3d3d3d",
2236 medium: "#3d3d3d",
2237 major_casing_early: "#1f1f1f",
2238 major: "#3d3d3d",
2239 highway_casing_early: "#1f1f1f",
2240 highway: "#474747",
2241 railway: "#000000",
2242 boundaries: "#5b6374",
2243 waterway_label: "#717784",
2244 bridges_other_casing: "#2b2b2b",
2245 bridges_minor_casing: "#1f1f1f",
2246 bridges_link_casing: "#1f1f1f",
2247 bridges_medium_casing: "#1f1f1f",
2248 bridges_major_casing: "#1f1f1f",
2249 bridges_highway_casing: "#1f1f1f",
2250 bridges_other: "#333333",
2251 bridges_minor: "#333333",
2252 bridges_link: "#3d3d3d",
2253 bridges_medium: "#3d3d3d",
2254 bridges_major: "#3d3d3d",
2255 bridges_highway: "#474747",
2256 roads_label_minor: "#525252",
2257 roads_label_minor_halo: "#1f1f1f",
2258 roads_label_major: "#666666",
2259 roads_label_major_halo: "#1f1f1f",
2260 ocean_label: "#717784",
2261 peak_label: "#898080",
2262 subplace_label: "#525252",
2263 subplace_label_halo: "#1f1f1f",
2264 city_circle: "#000000",
2265 city_circle_stroke: "#7a7a7a",
2266 city_label: "#7a7a7a",
2267 city_label_halo: "#212121",
2268 state_label: "#3d3d3d",
2269 state_label_halo: "#1f1f1f",
2270 country_label: "#5c5c5c"
2271 };
2272 var WHITE = {
2273 background: "#ffffff",
2274 earth: "#ffffff",
2275 park_a: "#fcfcfc",
2276 park_b: "#fcfcfc",
2277 hospital: "#f8f8f8",
2278 industrial: "#fcfcfc",
2279 school: "#f8f8f8",
2280 wood_a: "#fafafa",
2281 wood_b: "#fafafa",
2282 pedestrian: "#fdfdfd",
2283 scrub_a: "#fafafa",
2284 scrub_b: "#fafafa",
2285 glacier: "#fcfcfc",
2286 sand: "#fafafa",
2287 beach: "#f6f6f6",
2288 aerodrome: "#fdfdfd",
2289 runway: "#efefef",
2290 water: "#dcdcdc",
2291 pier: "#f5f5f5",
2292 zoo: "#f7f7f7",
2293 military: "#fcfcfc",
2294 tunnel_other_casing: "#d6d6d6",
2295 tunnel_minor_casing: "#fcfcfc",
2296 tunnel_link_casing: "#fcfcfc",
2297 tunnel_medium_casing: "#fcfcfc",
2298 tunnel_major_casing: "#fcfcfc",
2299 tunnel_highway_casing: "#fcfcfc",
2300 tunnel_other: "#d6d6d6",
2301 tunnel_minor: "#d6d6d6",
2302 tunnel_link: "#d6d6d6",
2303 tunnel_medium: "#d6d6d6",
2304 tunnel_major: "#d6d6d6",
2305 tunnel_highway: "#d6d6d6",
2306 transit_pier: "#efefef",
2307 buildings: "#efefef",
2308 minor_service_casing: "#ffffff",
2309 minor_casing: "#ffffff",
2310 link_casing: "#ffffff",
2311 medium_casing: "#ffffff",
2312 major_casing_late: "#ffffff",
2313 highway_casing_late: "#ffffff",
2314 other: "#f5f5f5",
2315 minor_service: "#f5f5f5",
2316 minor_a: "#ebebeb",
2317 minor_b: "#f5f5f5",
2318 link: "#ebebeb",
2319 medium: "#ebebeb",
2320 major_casing_early: "#ffffff",
2321 major: "#ebebeb",
2322 highway_casing_early: "#ffffff",
2323 highway: "#ebebeb",
2324 railway: "#d6d6d6",
2325 boundaries: "#adadad",
2326 waterway_label: "#adadad",
2327 bridges_other_casing: "#ffffff",
2328 bridges_minor_casing: "#ffffff",
2329 bridges_link_casing: "#ffffff",
2330 bridges_medium_casing: "#ffffff",
2331 bridges_major_casing: "#ffffff",
2332 bridges_highway_casing: "#ffffff",
2333 bridges_other: "#f5f5f5",
2334 bridges_minor: "#f5f5f5",
2335 bridges_link: "#ebebeb",
2336 bridges_medium: "#ebebeb",
2337 bridges_major: "#ebebeb",
2338 bridges_highway: "#ebebeb",
2339 roads_label_minor: "#adadad",
2340 roads_label_minor_halo: "#ffffff",
2341 roads_label_major: "#999999",
2342 roads_label_major_halo: "#ffffff",
2343 ocean_label: "#adadad",
2344 peak_label: "#adadad",
2345 subplace_label: "#8f8f8f",
2346 subplace_label_halo: "#ffffff",
2347 city_circle: "#ffffff",
2348 city_circle_stroke: "#adadad",
2349 city_label: "#5c5c5c",
2350 city_label_halo: "#ffffff",
2351 state_label: "#b3b3b3",
2352 state_label_halo: "#ffffff",
2353 country_label: "#b8b8b8"
2354 };
2355 var GRAYSCALE = {
2356 background: "#a3a3a3",
2357 earth: "#cccccc",
2358 park_a: "#c2c2c2",
2359 park_b: "#c2c2c2",
2360 hospital: "#d0d0d0",
2361 industrial: "#c6c6c6",
2362 school: "#d0d0d0",
2363 wood_a: "#c2c2c2",
2364 wood_b: "#c2c2c2",
2365 pedestrian: "#c4c4c4",
2366 scrub_a: "#c2c2c2",
2367 scrub_b: "#c2c2c2",
2368 glacier: "#d2d2d2",
2369 sand: "#d2d2d2",
2370 beach: "#d2d2d2",
2371 aerodrome: "#c9c9c9",
2372 runway: "#f5f5f5",
2373 water: "#a3a3a3",
2374 pier: "#b8b8b8",
2375 zoo: "#c7c7c7",
2376 military: "#bfbfbf",
2377 tunnel_other_casing: "#b8b8b8",
2378 tunnel_minor_casing: "#b8b8b8",
2379 tunnel_link_casing: "#b8b8b8",
2380 tunnel_medium_casing: "#b8b8b8",
2381 tunnel_major_casing: "#b8b8b8",
2382 tunnel_highway_casing: "#b8b8b8",
2383 tunnel_other: "#d6d6d6",
2384 tunnel_minor: "#d6d6d6",
2385 tunnel_link: "#d6d6d6",
2386 tunnel_medium: "#d6d6d6",
2387 tunnel_major: "#d6d6d6",
2388 tunnel_highway: "#d6d6d6",
2389 transit_pier: "#b8b8b8",
2390 buildings: "#e0e0e0",
2391 minor_service_casing: "#cccccc",
2392 minor_casing: "#cccccc",
2393 link_casing: "#cccccc",
2394 medium_casing: "#cccccc",
2395 major_casing_late: "#cccccc",
2396 highway_casing_late: "#cccccc",
2397 other: "#e0e0e0",
2398 minor_service: "#e0e0e0",
2399 minor_a: "#ebebeb",
2400 minor_b: "#e0e0e0",
2401 link: "#ebebeb",
2402 medium: "#ebebeb",
2403 major_casing_early: "#cccccc",
2404 major: "#ebebeb",
2405 highway_casing_early: "#cccccc",
2406 highway: "#ebebeb",
2407 railway: "#f5f5f5",
2408 boundaries: "#5c5c5c",
2409 waterway_label: "#7a7a7a",
2410 bridges_other_casing: "#cccccc",
2411 bridges_minor_casing: "#cccccc",
2412 bridges_link_casing: "#cccccc",
2413 bridges_medium_casing: "#cccccc",
2414 bridges_major_casing: "#cccccc",
2415 bridges_highway_casing: "#cccccc",
2416 bridges_other: "#e0e0e0",
2417 bridges_minor: "#e0e0e0",
2418 bridges_link: "#ebebeb",
2419 bridges_medium: "#ebebeb",
2420 bridges_major: "#ebebeb",
2421 bridges_highway: "#ebebeb",
2422 roads_label_minor: "#999999",
2423 roads_label_minor_halo: "#e0e0e0",
2424 roads_label_major: "#8f8f8f",
2425 roads_label_major_halo: "#ebebeb",
2426 ocean_label: "#7a7a7a",
2427 peak_label: "#5c5c5c",
2428 subplace_label: "#7a7a7a",
2429 subplace_label_halo: "#cccccc",
2430 city_circle: "#c2c2c2",
2431 city_circle_stroke: "#7a7a7a",
2432 city_label: "#474747",
2433 city_label_halo: "#cccccc",
2434 state_label: "#999999",
2435 state_label_halo: "#cccccc",
2436 country_label: "#858585"
2437 };
2438 var BLACK = {
2439 background: "#2b2b2b",
2440 earth: "#141414",
2441 park_a: "#181818",
2442 park_b: "#181818",
2443 hospital: "#1d1d1d",
2444 industrial: "#101010",
2445 school: "#111111",
2446 wood_a: "#1a1a1a",
2447 wood_b: "#1a1a1a",
2448 pedestrian: "#191919",
2449 scrub_a: "#1c1c1c",
2450 scrub_b: "#1c1c1c",
2451 glacier: "#191919",
2452 sand: "#161616",
2453 beach: "#1f1f1f",
2454 aerodrome: "#191919",
2455 runway: "#323232",
2456 water: "#333333",
2457 pier: "#0a0a0a",
2458 zoo: "#191919",
2459 military: "#121212",
2460 tunnel_other_casing: "#101010",
2461 tunnel_minor_casing: "#101010",
2462 tunnel_link_casing: "#101010",
2463 tunnel_medium_casing: "#101010",
2464 tunnel_major_casing: "#101010",
2465 tunnel_highway_casing: "#101010",
2466 tunnel_other: "#292929",
2467 tunnel_minor: "#292929",
2468 tunnel_link: "#292929",
2469 tunnel_medium: "#292929",
2470 tunnel_major: "#292929",
2471 tunnel_highway: "#292929",
2472 transit_pier: "#0a0a0a",
2473 buildings: "#0a0a0a",
2474 minor_service_casing: "#141414",
2475 minor_casing: "#141414",
2476 link_casing: "#141414",
2477 medium_casing: "#141414",
2478 major_casing_late: "#141414",
2479 highway_casing_late: "#141414",
2480 other: "#1f1f1f",
2481 minor_service: "#1f1f1f",
2482 minor_a: "#292929",
2483 minor_b: "#1f1f1f",
2484 link: "#1f1f1f",
2485 medium: "#292929",
2486 major_casing_early: "#141414",
2487 major: "#292929",
2488 highway_casing_early: "#141414",
2489 highway: "#292929",
2490 railway: "#292929",
2491 boundaries: "#707070",
2492 waterway_label: "#707070",
2493 bridges_other_casing: "#141414",
2494 bridges_minor_casing: "#141414",
2495 bridges_link_casing: "#141414",
2496 bridges_medium_casing: "#141414",
2497 bridges_major_casing: "#141414",
2498 bridges_highway_casing: "#141414",
2499 bridges_other: "#1f1f1f",
2500 bridges_minor: "#1f1f1f",
2501 bridges_link: "#292929",
2502 bridges_medium: "#292929",
2503 bridges_major: "#292929",
2504 bridges_highway: "#292929",
2505 roads_label_minor: "#525252",
2506 roads_label_minor_halo: "#141414",
2507 roads_label_major: "#5c5c5c",
2508 roads_label_major_halo: "#141414",
2509 ocean_label: "#707070",
2510 peak_label: "#707070",
2511 subplace_label: "#5c5c5c",
2512 subplace_label_halo: "#141414",
2513 city_circle: "#000000",
2514 city_circle_stroke: "#666666",
2515 city_label: "#999999",
2516 city_label_halo: "#141414",
2517 state_label: "#3d3d3d",
2518 state_label_halo: "#141414",
2519 country_label: "#707070"
2520 };
2521 var themes = {
2522 light: LIGHT,
2523 dark: DARK,
2524 white: WHITE,
2525 grayscale: GRAYSCALE,
2526 black: BLACK,
2527 contrast: CONTRAST
2528 };
2529 var themes_default = themes;
2530
2531 // src/index.ts
2532 function src_default(source, key) {
2533 const theme = themes_default[key];
2534 return nolabels_layers(source, theme).concat(labels_layers(source, theme));
2535 }
2536 function noLabels(source, key) {
2537 const theme = themes_default[key];
2538 return nolabels_layers(source, theme);
2539 }
2540 function labels(source, key) {
2541 const theme = themes_default[key];
2542 return labels_layers(source, theme);
2543 }
2544 return __toCommonJS(src_exports);
2545})();