-
-
Save tmcw/5c435005d112528f8a9e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"layers": [ | |
{ | |
"id": "country_label_2", | |
"type": "symbol", | |
"source": "mapbox", | |
"source-layer": "country_label", | |
"filter": [ | |
"all", | |
[ | |
"==", | |
"scalerank", | |
2 | |
] | |
], | |
"layout": { | |
"text-font": "@sans_bd", | |
"text-field": { | |
"base": 1, | |
"stops": [ | |
[ | |
0, | |
"{name_en}" | |
], | |
[ | |
20, | |
null | |
] | |
] | |
}, | |
"text-max-width": 6.25, | |
"text-transform": "uppercase", | |
"text-max-size": 17, | |
"text-letter-spacing": { | |
"base": 1, | |
"stops": [ | |
[ | |
0, | |
0 | |
], | |
[ | |
20, | |
20 | |
] | |
] | |
} | |
}, | |
"paint": { | |
"text-color": "@text", | |
"text-halo-color": "@text_halo", | |
"text-halo-width": 2, | |
"text-halo-blur": 1, | |
"text-size": { | |
"stops": [ | |
[ | |
3, | |
13 | |
], | |
[ | |
5, | |
17 | |
] | |
] | |
} | |
}, | |
"interactive": true | |
} | |
], | |
"sprite": "https://www.mapbox.com/mapbox-gl-styles/sprites/bright", | |
"glyphs": "mapbox://fontstack/{fontstack}/{range}.pbf", | |
"name": "bright", | |
"constants": { | |
"@main_width": { | |
"base": 1.2, | |
"stops": [ | |
[ | |
6.5, | |
0 | |
], | |
[ | |
7, | |
0.5 | |
], | |
[ | |
20, | |
14 | |
] | |
] | |
}, | |
"@building_opacity": { | |
"base": 1, | |
"stops": [ | |
[ | |
15, | |
0 | |
], | |
[ | |
16, | |
1 | |
] | |
] | |
}, | |
"@motorway_width": { | |
"base": 1.2, | |
"stops": [ | |
[ | |
6.5, | |
0 | |
], | |
[ | |
7, | |
0.5 | |
], | |
[ | |
20, | |
18 | |
] | |
] | |
}, | |
"@poi_text": "#666", | |
"@street": "#fff", | |
"@sans_md": "Open Sans Semibold, Arial Unicode MS Bold", | |
"@path": "#cba", | |
"@motorway_link_width": { | |
"base": 1.2, | |
"stops": [ | |
[ | |
12.5, | |
0 | |
], | |
[ | |
13, | |
1.5 | |
], | |
[ | |
20, | |
10 | |
] | |
] | |
}, | |
"@rail_hatch_line_dasharray": [ | |
0.2, | |
8 | |
], | |
"@street_casing": "#cfcdca", | |
"@park": "#d8e8c8", | |
"@marine_text": "#74aee9", | |
"@street_width": { | |
"base": 1.2, | |
"stops": [ | |
[ | |
13.5, | |
0 | |
], | |
[ | |
14, | |
2.5 | |
], | |
[ | |
20, | |
11.5 | |
] | |
] | |
}, | |
"@building_shadow": "#dfdbd7", | |
"@land": "#f8f4f0", | |
"@name": "{name_en}", | |
"@path_width": { | |
"base": 1.2, | |
"stops": [ | |
[ | |
15, | |
1.2 | |
], | |
[ | |
20, | |
4 | |
] | |
] | |
}, | |
"@text": "#334", | |
"@motorway_tunnel": "#ffdaa6", | |
"@wood": "#6a4", | |
"@admin-opacity": 0.5, | |
"@admin_level_2_width": { | |
"base": 1, | |
"stops": [ | |
[ | |
4, | |
1.4 | |
], | |
[ | |
5, | |
2 | |
], | |
[ | |
12, | |
8 | |
] | |
] | |
}, | |
"@main_tunnel": "#fff4c6", | |
"@aeroway": "#f0ede9", | |
"@sans_bd": "Open Sans Bold, Arial Unicode MS Bold", | |
"@text_halo": "rgba(255,255,255,0.8)", | |
"@admin": "#9e9cab", | |
"@admin_level_3_width": { | |
"base": 1, | |
"stops": [ | |
[ | |
4, | |
0.4 | |
], | |
[ | |
5, | |
1 | |
], | |
[ | |
12, | |
3 | |
] | |
] | |
}, | |
"@street_casing_width": { | |
"base": 1.2, | |
"stops": [ | |
[ | |
12, | |
0.5 | |
], | |
[ | |
13, | |
1 | |
], | |
[ | |
14, | |
4 | |
], | |
[ | |
20, | |
15 | |
] | |
] | |
}, | |
"@admin_level_3_dasharray": [ | |
3, | |
1, | |
1, | |
1 | |
], | |
"@marine_text_halo": "rgba(255,255,255,0.7)", | |
"@cemetery": "#e0e4dd", | |
"@motorway_casing": "#e9ac77", | |
"@maki": "#666", | |
"@rail": "#bbb", | |
"@sans": "Open Sans Regular, Arial Unicode MS Regular", | |
"@tunnel_line_dasharray": [ | |
0.5, | |
0.25 | |
], | |
"@motorway_link_casing_width": { | |
"base": 1.2, | |
"stops": [ | |
[ | |
12, | |
1 | |
], | |
[ | |
13, | |
3 | |
], | |
[ | |
20, | |
13 | |
] | |
] | |
}, | |
"@building": "#f2eae2", | |
"@school": "#f0e8f8", | |
"@street_casing_opacity": { | |
"stops": [ | |
[ | |
12, | |
0 | |
], | |
[ | |
12.5, | |
1 | |
] | |
] | |
}, | |
"@path_line_dasharray": [ | |
1.5, | |
0.75 | |
], | |
"@sans_it": "Open Sans Italic, Arial Unicode MS Regular", | |
"@water": "#a0c8f0", | |
"@poi_text_halo": "#ffffff", | |
"@motorway_casing_width": { | |
"base": 1.2, | |
"stops": [ | |
[ | |
5, | |
0.4 | |
], | |
[ | |
6, | |
0.6 | |
], | |
[ | |
7, | |
1.5 | |
], | |
[ | |
20, | |
22 | |
] | |
] | |
}, | |
"@main": "#fea", | |
"@rail_width": { | |
"base": 1.4, | |
"stops": [ | |
[ | |
14, | |
0.4 | |
], | |
[ | |
15, | |
0.75 | |
], | |
[ | |
20, | |
2 | |
] | |
] | |
}, | |
"@rail_hatch_width": { | |
"base": 1.4, | |
"stops": [ | |
[ | |
14.5, | |
0 | |
], | |
[ | |
15, | |
3 | |
], | |
[ | |
20, | |
8 | |
] | |
] | |
}, | |
"@hospital": "#fde", | |
"@motorway": "#fc8", | |
"@main_casing_width": { | |
"base": 1.2, | |
"stops": [ | |
[ | |
5, | |
0.1 | |
], | |
[ | |
6, | |
0.2 | |
], | |
[ | |
7, | |
1.5 | |
], | |
[ | |
20, | |
18 | |
] | |
] | |
}, | |
"@building_color_transition": { | |
"base": 1, | |
"stops": [ | |
[ | |
15.5, | |
"#f2eae2" | |
], | |
[ | |
16, | |
"#dfdbd7" | |
] | |
] | |
}, | |
"@service_width": { | |
"base": 1.2, | |
"stops": [ | |
[ | |
15.5, | |
0 | |
], | |
[ | |
16, | |
2 | |
], | |
[ | |
20, | |
7.5 | |
] | |
] | |
}, | |
"@service_casing_width": { | |
"base": 1.2, | |
"stops": [ | |
[ | |
15, | |
1 | |
], | |
[ | |
16, | |
4 | |
], | |
[ | |
20, | |
11 | |
] | |
] | |
}, | |
"@street_limited": "#f3f3f3", | |
"@point_translate": [ | |
0, | |
-30 | |
] | |
}, | |
"version": 7, | |
"sources": { | |
"mapbox": { | |
"url": "mapbox://mapbox.mapbox-streets-v6", | |
"type": "vector" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment