Created
October 17, 2019 16:01
-
-
Save zhik/3ab1529e42b9a24298e40bf14ac45332 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
{ | |
"version": 8, | |
"name": "Monochrome", | |
"metadata": { | |
"mapbox:type": "default", | |
"mapbox:origin": "monochrome-v1", | |
"mapbox:autocomposite": true, | |
"mapbox:groups": { | |
"Transit, transit-labels": { | |
"name": "Transit, transit-labels", | |
"collapsed": false | |
}, | |
"Administrative boundaries, admin": { | |
"name": "Administrative boundaries, admin", | |
"collapsed": false | |
}, | |
"Transit, bridges": { | |
"name": "Transit, bridges", | |
"collapsed": false | |
}, | |
"Transit, surface": { | |
"name": "Transit, surface", | |
"collapsed": false | |
}, | |
"Road network, bridges": { | |
"name": "Road network, bridges", | |
"collapsed": false | |
}, | |
"Road network, tunnels": { | |
"name": "Road network, tunnels", | |
"collapsed": false | |
}, | |
"Road network, road-labels": { | |
"name": "Road network, road-labels", | |
"collapsed": false | |
}, | |
"Buildings, built": { | |
"name": "Buildings, built", | |
"collapsed": false | |
}, | |
"Road network, surface": { | |
"name": "Road network, surface", | |
"collapsed": false | |
}, | |
"Road network, bridges-2": { | |
"name": "Road network, bridges-2", | |
"collapsed": false | |
}, | |
"Natural labels, natural-labels": { | |
"name": "Natural labels, natural-labels", | |
"collapsed": false | |
}, | |
"Base, land": {"name": "Base, land", "collapsed": false}, | |
"Place labels, place-labels": { | |
"name": "Place labels, place-labels", | |
"collapsed": false | |
}, | |
"Base, water": {"name": "Base, water", "collapsed": true}, | |
"Point of interest labels, poi-labels": { | |
"name": "Point of interest labels, poi-labels", | |
"collapsed": false | |
}, | |
"Transit, built": {"name": "Transit, built", "collapsed": false}, | |
"Base, built": {"name": "Base, built", "collapsed": false} | |
}, | |
"mapbox:sdk-support": { | |
"js": "0.54.0", | |
"android": "7.4.0", | |
"ios": "4.11.0" | |
}, | |
"mapbox:trackposition": true, | |
"mapbox:print": { | |
"units": "in", | |
"width": "15", | |
"height": "20", | |
"resolution": "400", | |
"format": "png" | |
} | |
}, | |
"center": [-74.01280210088771, 40.704762951139486], | |
"zoom": 15.866913736638583, | |
"bearing": 31.39999999999998, | |
"pitch": 1, | |
"sources": { | |
"composite": { | |
"url": "mapbox://zhik.ck1l0js4f4tuw2npwd2zcmsv1-54who,zhik.ck1l0hy1p00e42pql28qzn3ui-2nela,mapbox.mapbox-streets-v8,mapbox.mapbox-terrain-v2,zhik.ck1uuocse00jf2iqjqpxye7ky-1w2l6", | |
"type": "vector" | |
} | |
}, | |
"sprite": "mapbox://sprites/zhik/ck1kvleww97pz1ck2mbu6k6hj/312zbeplu1o8rccc5fj974efq", | |
"glyphs": "mapbox://fonts/zhik/{fontstack}/{range}.pbf", | |
"layers": [ | |
{ | |
"id": "land", | |
"type": "background", | |
"metadata": {"mapbox:group": "Base, land"}, | |
"layout": {}, | |
"paint": {"background-color": "hsl(240, 27%, 100%)"} | |
}, | |
{ | |
"id": "landcover", | |
"type": "fill", | |
"metadata": {"mapbox:group": "Base, land"}, | |
"source": "composite", | |
"source-layer": "landcover", | |
"maxzoom": 7, | |
"layout": {}, | |
"paint": { | |
"fill-color": "hsl(247, 12%, 96%)", | |
"fill-opacity": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
2, | |
0.3, | |
7, | |
0 | |
], | |
"fill-antialias": false | |
} | |
}, | |
{ | |
"id": "national-park", | |
"type": "fill", | |
"metadata": {"mapbox:group": "Base, land"}, | |
"source": "composite", | |
"source-layer": "landuse_overlay", | |
"minzoom": 5, | |
"filter": ["==", ["get", "class"], "national_park"], | |
"layout": {}, | |
"paint": { | |
"fill-color": "hsl(130, 0%, 91%)", | |
"fill-opacity": [ | |
"interpolate", | |
["linear"], | |
["zoom"], | |
5, | |
0, | |
6, | |
0.5, | |
10, | |
0.5 | |
] | |
} | |
}, | |
{ | |
"id": "landuse-simple", | |
"type": "fill", | |
"metadata": {"mapbox:group": "Base, land"}, | |
"source": "composite", | |
"source-layer": "landuse", | |
"minzoom": 5, | |
"filter": [ | |
"match", | |
["get", "class"], | |
["park", "airport", "glacier", "pitch", "sand"], | |
true, | |
false | |
], | |
"layout": {}, | |
"paint": { | |
"fill-color": [ | |
"interpolate", | |
["linear"], | |
["zoom"], | |
15, | |
[ | |
"match", | |
["get", "class"], | |
"park", | |
"hsl(126, 49%, 94%)", | |
"airport", | |
"hsl(247, 14%, 94%)", | |
"cemetery", | |
"hsl(247, 14%, 94%)", | |
"glacier", | |
"hsl(247, 14%, 94%)", | |
"hospital", | |
"hsl(247, 14%, 94%)", | |
"pitch", | |
"hsl(247, 14%, 94%)", | |
"sand", | |
"hsl(247, 14%, 94%)", | |
"school", | |
"hsl(247, 14%, 94%)", | |
"hsla(0, 0%, 0%, 0)" | |
], | |
16, | |
[ | |
"match", | |
["get", "class"], | |
"park", | |
"#e5fae7", | |
"airport", | |
"hsl(247, 14%, 94%)", | |
"cemetery", | |
"hsl(247, 14%, 94%)", | |
"glacier", | |
"hsl(247, 14%, 94%)", | |
"hospital", | |
"hsl(247, 14%, 94%)", | |
"pitch", | |
"hsl(247, 14%, 94%)", | |
"sand", | |
"hsl(247, 14%, 94%)", | |
"school", | |
"hsl(247, 14%, 94%)", | |
"hsla(0, 0%, 0%, 0)" | |
] | |
], | |
"fill-opacity": [ | |
"interpolate", | |
["linear"], | |
["zoom"], | |
5, | |
0, | |
6, | |
["match", ["get", "class"], "glacier", 0.5, 1] | |
] | |
} | |
}, | |
{ | |
"id": "water-shadow", | |
"type": "fill", | |
"metadata": {"mapbox:group": "Base, water"}, | |
"source": "composite", | |
"source-layer": "water", | |
"layout": {}, | |
"paint": { | |
"fill-color": "hsl(247, 12%, 80%)", | |
"fill-translate": [ | |
"interpolate", | |
["exponential", 1.2], | |
["zoom"], | |
7, | |
["literal", [0, 0]], | |
16, | |
["literal", [-1, -1]] | |
], | |
"fill-translate-anchor": "viewport" | |
} | |
}, | |
{ | |
"id": "waterway", | |
"type": "line", | |
"metadata": {"mapbox:group": "Base, water"}, | |
"source": "composite", | |
"source-layer": "waterway", | |
"minzoom": 8, | |
"layout": { | |
"line-cap": ["step", ["zoom"], "butt", 11, "round"], | |
"line-join": "round" | |
}, | |
"paint": { | |
"line-color": "hsl(247, 9%, 88%)", | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.3], | |
["zoom"], | |
9, | |
["match", ["get", "class"], ["canal", "river"], 0.1, 0], | |
20, | |
["match", ["get", "class"], ["canal", "river"], 8, 3] | |
], | |
"line-opacity": [ | |
"interpolate", | |
["linear"], | |
["zoom"], | |
8, | |
0, | |
8.5, | |
1 | |
] | |
} | |
}, | |
{ | |
"id": "water", | |
"type": "fill", | |
"metadata": {"mapbox:group": "Base, water"}, | |
"source": "composite", | |
"source-layer": "water", | |
"layout": {}, | |
"paint": {"fill-color": "hsl(183, 28%, 91%)"} | |
}, | |
{ | |
"id": "land-structure-polygon", | |
"type": "fill", | |
"metadata": {"mapbox:group": "Base, built"}, | |
"source": "composite", | |
"source-layer": "structure", | |
"minzoom": 13, | |
"filter": [ | |
"all", | |
["==", ["geometry-type"], "Polygon"], | |
["==", ["get", "class"], "land"] | |
], | |
"layout": {}, | |
"paint": {"fill-color": "hsl(247, 10%, 99%)"} | |
}, | |
{ | |
"id": "land-structure-line", | |
"type": "line", | |
"metadata": {"mapbox:group": "Base, built"}, | |
"source": "composite", | |
"source-layer": "structure", | |
"minzoom": 13, | |
"filter": [ | |
"all", | |
["==", ["geometry-type"], "LineString"], | |
["==", ["get", "class"], "land"] | |
], | |
"layout": {"line-cap": "round"}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.99], | |
["zoom"], | |
14, | |
0.75, | |
20, | |
40 | |
], | |
"line-color": "hsl(247, 10%, 99%)" | |
} | |
}, | |
{ | |
"id": "aeroway-polygon", | |
"type": "fill", | |
"metadata": {"mapbox:group": "Transit, built"}, | |
"source": "composite", | |
"source-layer": "aeroway", | |
"minzoom": 11, | |
"filter": [ | |
"all", | |
["==", ["geometry-type"], "Polygon"], | |
[ | |
"match", | |
["get", "type"], | |
["runway", "taxiway", "helipad"], | |
true, | |
false | |
] | |
], | |
"layout": {}, | |
"paint": { | |
"fill-color": "hsl(247, 10%, 100%)", | |
"fill-opacity": [ | |
"interpolate", | |
["linear"], | |
["zoom"], | |
11, | |
0, | |
11.5, | |
1 | |
] | |
} | |
}, | |
{ | |
"id": "aeroway-line", | |
"type": "line", | |
"metadata": {"mapbox:group": "Transit, built"}, | |
"source": "composite", | |
"source-layer": "aeroway", | |
"minzoom": 9, | |
"filter": ["==", ["geometry-type"], "LineString"], | |
"layout": {}, | |
"paint": { | |
"line-color": "hsl(247, 10%, 100%)", | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
9, | |
["match", ["get", "type"], "runway", 1, 0.5], | |
18, | |
["match", ["get", "type"], "runway", 80, 20] | |
] | |
} | |
}, | |
{ | |
"id": "building", | |
"type": "fill", | |
"metadata": {"mapbox:group": "Buildings, built"}, | |
"source": "composite", | |
"source-layer": "building", | |
"minzoom": 15, | |
"filter": [ | |
"all", | |
["!=", ["get", "type"], "building:part"], | |
["==", ["get", "underground"], "false"] | |
], | |
"layout": {}, | |
"paint": { | |
"fill-color": [ | |
"interpolate", | |
["linear"], | |
["zoom"], | |
15, | |
[ | |
"match", | |
["get", "type"], | |
["university", "college"], | |
"#f2f2f3", | |
"hospital", | |
"hsl(3, 40%, 83%)", | |
"#f2f2f3" | |
], | |
16, | |
"hsl(247, 5%, 95%)" | |
], | |
"fill-opacity": [ | |
"interpolate", | |
["linear"], | |
["zoom"], | |
15, | |
0, | |
16, | |
1 | |
], | |
"fill-outline-color": "hsl(247, 6%, 89%)" | |
} | |
}, | |
{ | |
"id": "building-outline", | |
"type": "line", | |
"metadata": {"mapbox:group": "Buildings, built"}, | |
"source": "composite", | |
"source-layer": "building", | |
"minzoom": 15, | |
"filter": [ | |
"all", | |
["!=", ["get", "type"], "building:part"], | |
["==", ["get", "underground"], "false"] | |
], | |
"layout": {}, | |
"paint": { | |
"line-color": "hsl(247, 6%, 89%)", | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
15, | |
0.75, | |
20, | |
3 | |
], | |
"line-opacity": [ | |
"interpolate", | |
["linear"], | |
["zoom"], | |
15, | |
0, | |
16, | |
1 | |
] | |
} | |
}, | |
{ | |
"id": "tunnel-street-minor-low", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, tunnels"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 13, | |
"filter": [ | |
"all", | |
["==", ["get", "structure"], "tunnel"], | |
[ | |
"step", | |
["zoom"], | |
[ | |
"match", | |
["get", "class"], | |
["street", "street_limited", "track", "primary_link"], | |
true, | |
false | |
], | |
14, | |
[ | |
"match", | |
["get", "class"], | |
[ | |
"street", | |
"street_limited", | |
"track", | |
"primary_link", | |
"secondary_link", | |
"tertiary_link", | |
"service" | |
], | |
true, | |
false | |
] | |
], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": {}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
12, | |
0.5, | |
14, | |
[ | |
"match", | |
["get", "class"], | |
["street", "street_limited", "primary_link"], | |
2, | |
"track", | |
1, | |
0.5 | |
], | |
18, | |
[ | |
"match", | |
["get", "class"], | |
["street", "street_limited", "primary_link"], | |
18, | |
12 | |
] | |
], | |
"line-color": "hsl(247, 10%, 90%)", | |
"line-opacity": ["step", ["zoom"], 1, 14, 0] | |
} | |
}, | |
{ | |
"id": "tunnel-street-minor-case", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, tunnels"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 13, | |
"filter": [ | |
"all", | |
["==", ["get", "structure"], "tunnel"], | |
[ | |
"step", | |
["zoom"], | |
[ | |
"match", | |
["get", "class"], | |
["street", "street_limited", "track", "primary_link"], | |
true, | |
false | |
], | |
14, | |
[ | |
"match", | |
["get", "class"], | |
[ | |
"street", | |
"street_limited", | |
"track", | |
"primary_link", | |
"secondary_link", | |
"tertiary_link", | |
"service" | |
], | |
true, | |
false | |
] | |
], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": {}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
12, | |
0.75, | |
20, | |
2 | |
], | |
"line-color": "hsl(247, 8%, 100%)", | |
"line-gap-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
12, | |
0.5, | |
14, | |
[ | |
"match", | |
["get", "class"], | |
["street", "street_limited", "primary_link"], | |
2, | |
"track", | |
1, | |
0.5 | |
], | |
18, | |
[ | |
"match", | |
["get", "class"], | |
["street", "street_limited", "primary_link"], | |
18, | |
12 | |
] | |
], | |
"line-opacity": ["step", ["zoom"], 0, 14, 1], | |
"line-dasharray": [3, 3] | |
} | |
}, | |
{ | |
"id": "tunnel-primary-secondary-tertiary-case", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, tunnels"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 13, | |
"filter": [ | |
"all", | |
["==", ["get", "structure"], "tunnel"], | |
[ | |
"match", | |
["get", "class"], | |
["primary", "secondary", "tertiary"], | |
true, | |
false | |
], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": {}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
10, | |
["match", ["get", "class"], "primary", 1, 0.75], | |
18, | |
2 | |
], | |
"line-color": "hsl(247, 8%, 100%)", | |
"line-gap-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
5, | |
["match", ["get", "class"], "primary", 0.75, 0.1], | |
18, | |
["match", ["get", "class"], "primary", 32, 26] | |
], | |
"line-dasharray": [3, 3] | |
} | |
}, | |
{ | |
"id": "tunnel-major-link-case", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, tunnels"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 13, | |
"filter": [ | |
"all", | |
["==", ["get", "structure"], "tunnel"], | |
[ | |
"match", | |
["get", "class"], | |
["motorway_link", "trunk_link"], | |
true, | |
false | |
], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": {}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
12, | |
0.75, | |
20, | |
2 | |
], | |
"line-color": "hsl(247, 8%, 100%)", | |
"line-gap-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
12, | |
0.5, | |
14, | |
2, | |
18, | |
18 | |
], | |
"line-dasharray": [3, 3] | |
} | |
}, | |
{ | |
"id": "tunnel-motorway-trunk-case", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, tunnels"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 13, | |
"filter": [ | |
"all", | |
["==", ["get", "structure"], "tunnel"], | |
["match", ["get", "class"], ["motorway", "trunk"], true, false], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": {}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
10, | |
1, | |
18, | |
2 | |
], | |
"line-color": "hsl(247, 8%, 100%)", | |
"line-gap-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
5, | |
0.75, | |
18, | |
32 | |
], | |
"line-dasharray": [3, 3] | |
} | |
}, | |
{ | |
"id": "tunnel-construction", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, tunnels"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 14, | |
"filter": [ | |
"all", | |
["==", ["get", "structure"], "tunnel"], | |
["==", ["get", "class"], "construction"], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": {}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
14, | |
2, | |
18, | |
18 | |
], | |
"line-color": "hsl(247, 10%, 90%)", | |
"line-dasharray": [ | |
"step", | |
["zoom"], | |
["literal", [0.4, 0.8]], | |
15, | |
["literal", [0.3, 0.6]], | |
16, | |
["literal", [0.2, 0.3]], | |
17, | |
["literal", [0.2, 0.25]], | |
18, | |
["literal", [0.15, 0.15]] | |
] | |
} | |
}, | |
{ | |
"id": "tunnel-path", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, tunnels"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 13, | |
"filter": [ | |
"all", | |
["==", ["get", "structure"], "tunnel"], | |
["==", ["get", "class"], "path"], | |
["!=", ["get", "type"], "steps"], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": {}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
15, | |
1, | |
18, | |
4 | |
], | |
"line-dasharray": [ | |
"step", | |
["zoom"], | |
["literal", [1, 0]], | |
15, | |
["literal", [1.75, 1]], | |
16, | |
["literal", [1, 0.75]], | |
17, | |
["literal", [1, 0.5]] | |
], | |
"line-color": "hsl(247, 6%, 89%)" | |
} | |
}, | |
{ | |
"id": "tunnel-steps", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, tunnels"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 14, | |
"filter": [ | |
"all", | |
["==", ["get", "structure"], "tunnel"], | |
["==", ["get", "class"], "steps"], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": {}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
15, | |
1, | |
16, | |
1.6, | |
18, | |
6 | |
], | |
"line-color": "hsl(247, 6%, 89%)", | |
"line-dasharray": [ | |
"step", | |
["zoom"], | |
["literal", [1, 0]], | |
15, | |
["literal", [1.75, 1]], | |
16, | |
["literal", [1, 0.75]], | |
17, | |
["literal", [0.3, 0.3]] | |
] | |
} | |
}, | |
{ | |
"id": "tunnel-major-link", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, tunnels"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 13, | |
"filter": [ | |
"all", | |
["==", ["get", "structure"], "tunnel"], | |
[ | |
"match", | |
["get", "class"], | |
["motorway_link", "trunk_link"], | |
true, | |
false | |
], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": {}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
12, | |
0.5, | |
14, | |
2, | |
18, | |
18 | |
], | |
"line-color": "hsl(247, 10%, 90%)" | |
} | |
}, | |
{ | |
"id": "tunnel-pedestrian", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, tunnels"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 13, | |
"filter": [ | |
"all", | |
["==", ["get", "structure"], "tunnel"], | |
["==", ["get", "class"], "pedestrian"], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": {}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
14, | |
0.5, | |
18, | |
12 | |
], | |
"line-color": "hsl(247, 10%, 90%)", | |
"line-dasharray": [ | |
"step", | |
["zoom"], | |
["literal", [1, 0]], | |
15, | |
["literal", [1.5, 0.4]], | |
16, | |
["literal", [1, 0.2]] | |
] | |
} | |
}, | |
{ | |
"id": "tunnel-street-minor", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, tunnels"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 13, | |
"filter": [ | |
"all", | |
["==", ["get", "structure"], "tunnel"], | |
[ | |
"step", | |
["zoom"], | |
[ | |
"match", | |
["get", "class"], | |
["street", "street_limited", "track", "primary_link"], | |
true, | |
false | |
], | |
14, | |
[ | |
"match", | |
["get", "class"], | |
[ | |
"street", | |
"street_limited", | |
"track", | |
"primary_link", | |
"secondary_link", | |
"tertiary_link", | |
"service" | |
], | |
true, | |
false | |
] | |
], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": {}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
12, | |
0.5, | |
14, | |
[ | |
"match", | |
["get", "class"], | |
["street", "street_limited", "primary_link"], | |
2, | |
"track", | |
1, | |
0.5 | |
], | |
18, | |
[ | |
"match", | |
["get", "class"], | |
["street", "street_limited", "primary_link"], | |
18, | |
12 | |
] | |
], | |
"line-color": "hsl(247, 10%, 90%)", | |
"line-opacity": ["step", ["zoom"], 0, 14, 1] | |
} | |
}, | |
{ | |
"id": "tunnel-primary-secondary-tertiary", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, tunnels"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 13, | |
"filter": [ | |
"all", | |
["==", ["get", "structure"], "tunnel"], | |
[ | |
"match", | |
["get", "class"], | |
["primary", "secondary", "tertiary"], | |
true, | |
false | |
], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": {}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
5, | |
["match", ["get", "class"], "primary", 0.75, 0.1], | |
18, | |
["match", ["get", "class"], "primary", 32, 26] | |
], | |
"line-color": "hsl(247, 10%, 90%)" | |
} | |
}, | |
{ | |
"id": "tunnel-motorway-trunk", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, tunnels"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 13, | |
"filter": [ | |
"all", | |
["==", ["get", "structure"], "tunnel"], | |
["match", ["get", "class"], ["motorway", "trunk"], true, false], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": {}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
5, | |
0.75, | |
18, | |
32 | |
], | |
"line-color": "hsl(247, 10%, 90%)" | |
} | |
}, | |
{ | |
"id": "road-pedestrian-case", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, surface"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 12, | |
"filter": [ | |
"all", | |
["==", ["get", "class"], "pedestrian"], | |
["match", ["get", "structure"], ["none", "ford"], true, false], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": {"line-join": ["step", ["zoom"], "miter", 14, "round"]}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
14, | |
2, | |
18, | |
14.5 | |
], | |
"line-color": "hsl(260, 19%, 97%)", | |
"line-opacity": ["step", ["zoom"], 0, 14, 1] | |
} | |
}, | |
{ | |
"id": "road-minor-low", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, surface"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 13, | |
"filter": [ | |
"all", | |
[ | |
"step", | |
["zoom"], | |
["==", ["get", "class"], "track"], | |
14, | |
[ | |
"match", | |
["get", "class"], | |
["track", "secondary_link", "tertiary_link", "service"], | |
true, | |
false | |
] | |
], | |
["match", ["get", "structure"], ["none", "ford"], true, false], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": { | |
"line-cap": ["step", ["zoom"], "butt", 14, "round"], | |
"line-join": ["step", ["zoom"], "miter", 14, "round"] | |
}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
14, | |
["match", ["get", "class"], "track", 1, 0.5], | |
18, | |
12 | |
], | |
"line-color": "hsl(260, 19%, 97%)", | |
"line-opacity": ["step", ["zoom"], 1, 14, 0] | |
} | |
}, | |
{ | |
"id": "road-street-low", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, surface"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 11, | |
"filter": [ | |
"all", | |
[ | |
"match", | |
["get", "class"], | |
["street", "street_limited", "primary_link"], | |
true, | |
false | |
], | |
["match", ["get", "structure"], ["none", "ford"], true, false], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": { | |
"line-cap": ["step", ["zoom"], "butt", 14, "round"], | |
"line-join": ["step", ["zoom"], "miter", 14, "round"] | |
}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
12, | |
0.5, | |
14, | |
2, | |
18, | |
18 | |
], | |
"line-color": "hsl(260, 19%, 97%)", | |
"line-opacity": ["step", ["zoom"], 1, 14, 0] | |
} | |
}, | |
{ | |
"id": "road-minor-case", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, surface"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 13, | |
"filter": [ | |
"all", | |
[ | |
"step", | |
["zoom"], | |
["==", ["get", "class"], "track"], | |
14, | |
[ | |
"match", | |
["get", "class"], | |
["track", "secondary_link", "tertiary_link", "service"], | |
true, | |
false | |
] | |
], | |
["match", ["get", "structure"], ["none", "ford"], true, false], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": { | |
"line-cap": ["step", ["zoom"], "butt", 14, "round"], | |
"line-join": ["step", ["zoom"], "miter", 14, "round"] | |
}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
12, | |
0.75, | |
20, | |
2 | |
], | |
"line-color": "hsl(260, 19%, 97%)", | |
"line-gap-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
14, | |
["match", ["get", "class"], "track", 1, 0.5], | |
18, | |
12 | |
], | |
"line-opacity": ["step", ["zoom"], 0, 14, 1] | |
} | |
}, | |
{ | |
"id": "road-street-case", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, surface"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 11, | |
"filter": [ | |
"all", | |
[ | |
"match", | |
["get", "class"], | |
["street", "street_limited", "primary_link"], | |
true, | |
false | |
], | |
["match", ["get", "structure"], ["none", "ford"], true, false], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": { | |
"line-cap": ["step", ["zoom"], "butt", 14, "round"], | |
"line-join": ["step", ["zoom"], "miter", 14, "round"] | |
}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
12, | |
0.75, | |
20, | |
2 | |
], | |
"line-color": "hsl(260, 19%, 97%)", | |
"line-gap-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
12, | |
0.5, | |
14, | |
2, | |
18, | |
18 | |
], | |
"line-opacity": ["step", ["zoom"], 0, 14, 1] | |
} | |
}, | |
{ | |
"id": "road-secondary-tertiary-case", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, surface"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 8, | |
"filter": [ | |
"all", | |
[ | |
"match", | |
["get", "class"], | |
["secondary", "tertiary"], | |
true, | |
false | |
], | |
["match", ["get", "structure"], ["none", "ford"], true, false], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": { | |
"line-cap": ["step", ["zoom"], "butt", 14, "round"], | |
"line-join": ["step", ["zoom"], "miter", 14, "round"] | |
}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
10, | |
0.75, | |
18, | |
2 | |
], | |
"line-color": "hsl(260, 19%, 97%)", | |
"line-gap-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
5, | |
0.1, | |
18, | |
26 | |
], | |
"line-opacity": ["step", ["zoom"], 0, 10, 1] | |
} | |
}, | |
{ | |
"id": "road-primary-case", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, surface"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 7, | |
"filter": [ | |
"all", | |
["==", ["get", "class"], "primary"], | |
["match", ["get", "structure"], ["none", "ford"], true, false], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": { | |
"line-cap": ["step", ["zoom"], "butt", 14, "round"], | |
"line-join": ["step", ["zoom"], "miter", 14, "round"] | |
}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
10, | |
1, | |
18, | |
2 | |
], | |
"line-color": "hsl(260, 19%, 97%)", | |
"line-gap-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
5, | |
0.75, | |
18, | |
32 | |
], | |
"line-opacity": ["step", ["zoom"], 0, 10, 1] | |
} | |
}, | |
{ | |
"id": "road-major-link-case", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, surface"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 10, | |
"filter": [ | |
"all", | |
[ | |
"match", | |
["get", "class"], | |
["motorway_link", "trunk_link"], | |
true, | |
false | |
], | |
["match", ["get", "structure"], ["none", "ford"], true, false], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": { | |
"line-cap": ["step", ["zoom"], "butt", 14, "round"], | |
"line-join": ["step", ["zoom"], "miter", 14, "round"] | |
}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
12, | |
0.75, | |
20, | |
2 | |
], | |
"line-color": "hsl(260, 19%, 97%)", | |
"line-gap-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
12, | |
0.5, | |
14, | |
2, | |
18, | |
18 | |
], | |
"line-opacity": ["step", ["zoom"], 0, 11, 1] | |
} | |
}, | |
{ | |
"id": "road-motorway-trunk-case", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, surface"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 5, | |
"filter": [ | |
"all", | |
["match", ["get", "class"], ["motorway", "trunk"], true, false], | |
["match", ["get", "structure"], ["none", "ford"], true, false], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": { | |
"line-cap": ["step", ["zoom"], "butt", 14, "round"], | |
"line-join": ["step", ["zoom"], "miter", 14, "round"] | |
}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
10, | |
1, | |
18, | |
2 | |
], | |
"line-color": "hsl(260, 19%, 97%)", | |
"line-gap-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
5, | |
0.75, | |
18, | |
32 | |
], | |
"line-opacity": [ | |
"step", | |
["zoom"], | |
["match", ["get", "class"], "motorway", 1, 0], | |
6, | |
1 | |
] | |
} | |
}, | |
{ | |
"id": "road-construction", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, surface"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 14, | |
"filter": [ | |
"all", | |
["==", ["get", "class"], "construction"], | |
["match", ["get", "structure"], ["none", "ford"], true, false], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": {}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
14, | |
2, | |
18, | |
18 | |
], | |
"line-color": "hsl(260, 19%, 97%)", | |
"line-dasharray": [ | |
"step", | |
["zoom"], | |
["literal", [0.4, 0.8]], | |
15, | |
["literal", [0.3, 0.6]], | |
16, | |
["literal", [0.2, 0.3]], | |
17, | |
["literal", [0.2, 0.25]], | |
18, | |
["literal", [0.15, 0.15]] | |
] | |
} | |
}, | |
{ | |
"id": "road-path", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, surface"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 12, | |
"filter": [ | |
"all", | |
["==", ["get", "class"], "path"], | |
[ | |
"step", | |
["zoom"], | |
[ | |
"!", | |
[ | |
"match", | |
["get", "type"], | |
["steps", "sidewalk", "crossing"], | |
true, | |
false | |
] | |
], | |
16, | |
["!=", ["get", "type"], "steps"] | |
], | |
["match", ["get", "structure"], ["none", "ford"], true, false], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": {"line-join": ["step", ["zoom"], "miter", 14, "round"]}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
13, | |
0.5, | |
14, | |
1, | |
15, | |
1, | |
18, | |
4 | |
], | |
"line-color": "hsl(260, 19%, 97%)", | |
"line-dasharray": [ | |
"step", | |
["zoom"], | |
["literal", [1, 0]], | |
15, | |
["literal", [1.75, 1]], | |
16, | |
["literal", [1, 0.75]], | |
17, | |
["literal", [1, 0.5]] | |
] | |
} | |
}, | |
{ | |
"id": "road-steps", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, surface"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 14, | |
"filter": [ | |
"all", | |
["==", ["get", "type"], "steps"], | |
["match", ["get", "structure"], ["none", "ford"], true, false], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": {"line-join": "round"}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
15, | |
1, | |
16, | |
1.6, | |
18, | |
6 | |
], | |
"line-color": "hsl(260, 19%, 97%)", | |
"line-dasharray": [ | |
"step", | |
["zoom"], | |
["literal", [1, 0]], | |
15, | |
["literal", [1.75, 1]], | |
16, | |
["literal", [1, 0.75]], | |
17, | |
["literal", [0.3, 0.3]] | |
] | |
} | |
}, | |
{ | |
"id": "road-major-link", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, surface"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 10, | |
"filter": [ | |
"all", | |
[ | |
"match", | |
["get", "class"], | |
["motorway_link", "trunk_link"], | |
true, | |
false | |
], | |
["match", ["get", "structure"], ["none", "ford"], true, false], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": { | |
"line-cap": ["step", ["zoom"], "butt", 13, "round"], | |
"line-join": ["step", ["zoom"], "miter", 13, "round"] | |
}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
12, | |
0.5, | |
14, | |
2, | |
18, | |
18 | |
], | |
"line-color": "hsl(260, 19%, 97%)" | |
} | |
}, | |
{ | |
"id": "road-pedestrian", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, surface"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 12, | |
"filter": [ | |
"all", | |
["==", ["get", "class"], "pedestrian"], | |
["match", ["get", "structure"], ["none", "ford"], true, false], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": {"line-join": ["step", ["zoom"], "miter", 14, "round"]}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
14, | |
0.5, | |
18, | |
12 | |
], | |
"line-color": "hsl(260, 19%, 97%)", | |
"line-dasharray": [ | |
"step", | |
["zoom"], | |
["literal", [1, 0]], | |
15, | |
["literal", [1.5, 0.4]], | |
16, | |
["literal", [1, 0.2]] | |
] | |
} | |
}, | |
{ | |
"id": "road-minor", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, surface"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 13, | |
"filter": [ | |
"all", | |
[ | |
"step", | |
["zoom"], | |
["==", ["get", "class"], "track"], | |
14, | |
[ | |
"match", | |
["get", "class"], | |
["track", "secondary_link", "tertiary_link", "service"], | |
true, | |
false | |
] | |
], | |
["match", ["get", "structure"], ["none", "ford"], true, false], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": { | |
"line-cap": ["step", ["zoom"], "butt", 14, "round"], | |
"line-join": ["step", ["zoom"], "miter", 14, "round"] | |
}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
14, | |
["match", ["get", "class"], "track", 1, 0.5], | |
18, | |
12 | |
], | |
"line-color": "hsl(260, 19%, 97%)", | |
"line-opacity": ["step", ["zoom"], 0, 14, 1] | |
} | |
}, | |
{ | |
"id": "road-street", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, surface"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 11, | |
"filter": [ | |
"all", | |
[ | |
"match", | |
["get", "class"], | |
["street", "street_limited", "primary_link"], | |
true, | |
false | |
], | |
["match", ["get", "structure"], ["none", "ford"], true, false], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": { | |
"line-cap": ["step", ["zoom"], "butt", 14, "round"], | |
"line-join": ["step", ["zoom"], "miter", 14, "round"] | |
}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
12, | |
0.5, | |
14, | |
2, | |
18, | |
18 | |
], | |
"line-color": "hsl(260, 19%, 97%)", | |
"line-opacity": ["step", ["zoom"], 0, 14, 1] | |
} | |
}, | |
{ | |
"id": "road-secondary-tertiary", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, surface"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 8, | |
"filter": [ | |
"all", | |
[ | |
"match", | |
["get", "class"], | |
["secondary", "tertiary"], | |
true, | |
false | |
], | |
["match", ["get", "structure"], ["none", "ford"], true, false], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": { | |
"line-cap": ["step", ["zoom"], "butt", 14, "round"], | |
"line-join": ["step", ["zoom"], "miter", 14, "round"] | |
}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
5, | |
0.1, | |
18, | |
26 | |
], | |
"line-color": "hsl(260, 19%, 97%)" | |
} | |
}, | |
{ | |
"id": "road-primary", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, surface"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 7, | |
"filter": [ | |
"all", | |
["==", ["get", "class"], "primary"], | |
["match", ["get", "structure"], ["none", "ford"], true, false], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": { | |
"line-cap": ["step", ["zoom"], "butt", 14, "round"], | |
"line-join": ["step", ["zoom"], "miter", 14, "round"] | |
}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
5, | |
0.75, | |
18, | |
32 | |
], | |
"line-color": "hsl(260, 19%, 97%)" | |
} | |
}, | |
{ | |
"id": "road-motorway-trunk", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, surface"}, | |
"source": "composite", | |
"source-layer": "road", | |
"filter": [ | |
"all", | |
["match", ["get", "class"], ["motorway", "trunk"], true, false], | |
["match", ["get", "structure"], ["none", "ford"], true, false], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": { | |
"line-cap": ["step", ["zoom"], "butt", 13, "round"], | |
"line-join": ["step", ["zoom"], "miter", 13, "round"] | |
}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
5, | |
0.75, | |
18, | |
32 | |
], | |
"line-color": "hsl(260, 19%, 97%)" | |
} | |
}, | |
{ | |
"id": "road-rail", | |
"type": "line", | |
"metadata": {"mapbox:group": "Transit, surface"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 13, | |
"filter": [ | |
"all", | |
[ | |
"match", | |
["get", "class"], | |
["major_rail", "minor_rail"], | |
true, | |
false | |
], | |
["match", ["get", "structure"], ["none", "ford"], true, false] | |
], | |
"layout": {"line-join": "round"}, | |
"paint": { | |
"line-color": "hsl(247, 5%, 95%)", | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
14, | |
0.5, | |
20, | |
1 | |
] | |
} | |
}, | |
{ | |
"id": "bridge-pedestrian-case", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, bridges"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 13, | |
"filter": [ | |
"all", | |
["==", ["get", "structure"], "bridge"], | |
["==", ["get", "class"], "pedestrian"], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": {"line-join": "round"}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
14, | |
2, | |
18, | |
14.5 | |
], | |
"line-color": "hsl(247, 10%, 87%)", | |
"line-opacity": ["step", ["zoom"], 0, 14, 1] | |
} | |
}, | |
{ | |
"id": "bridge-street-minor-low", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, bridges"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 13, | |
"filter": [ | |
"all", | |
["==", ["get", "structure"], "bridge"], | |
[ | |
"step", | |
["zoom"], | |
[ | |
"match", | |
["get", "class"], | |
["street", "street_limited", "track", "primary_link"], | |
true, | |
false | |
], | |
14, | |
[ | |
"match", | |
["get", "class"], | |
[ | |
"street", | |
"street_limited", | |
"track", | |
"primary_link", | |
"secondary_link", | |
"tertiary_link", | |
"service" | |
], | |
true, | |
false | |
] | |
], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": { | |
"line-cap": ["step", ["zoom"], "butt", 14, "round"], | |
"line-join": ["step", ["zoom"], "miter", 14, "round"] | |
}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
12, | |
0.5, | |
14, | |
[ | |
"match", | |
["get", "class"], | |
["street", "street_limited", "primary_link"], | |
2, | |
"track", | |
1, | |
0.5 | |
], | |
18, | |
[ | |
"match", | |
["get", "class"], | |
["street", "street_limited", "primary_link"], | |
18, | |
12 | |
] | |
], | |
"line-color": "hsl(247, 10%, 87%)", | |
"line-opacity": ["step", ["zoom"], 1, 14, 0] | |
} | |
}, | |
{ | |
"id": "bridge-street-minor-case", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, bridges"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 13, | |
"filter": [ | |
"all", | |
["==", ["get", "structure"], "bridge"], | |
[ | |
"step", | |
["zoom"], | |
[ | |
"match", | |
["get", "class"], | |
["street", "street_limited", "track", "primary_link"], | |
true, | |
false | |
], | |
14, | |
[ | |
"match", | |
["get", "class"], | |
[ | |
"street", | |
"street_limited", | |
"track", | |
"primary_link", | |
"secondary_link", | |
"tertiary_link", | |
"service" | |
], | |
true, | |
false | |
] | |
], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": {"line-join": "round"}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
12, | |
0.75, | |
20, | |
2 | |
], | |
"line-color": "hsl(247, 10%, 87%)", | |
"line-gap-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
12, | |
0.5, | |
14, | |
[ | |
"match", | |
["get", "class"], | |
["street", "street_limited", "primary_link"], | |
2, | |
"track", | |
1, | |
0.5 | |
], | |
18, | |
[ | |
"match", | |
["get", "class"], | |
["street", "street_limited", "primary_link"], | |
18, | |
12 | |
] | |
], | |
"line-opacity": ["step", ["zoom"], 0, 14, 1] | |
} | |
}, | |
{ | |
"id": "bridge-primary-secondary-tertiary-case", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, bridges"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 13, | |
"filter": [ | |
"all", | |
["==", ["get", "structure"], "bridge"], | |
[ | |
"match", | |
["get", "class"], | |
["primary", "secondary", "tertiary"], | |
true, | |
false | |
], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": {"line-join": "round"}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
10, | |
["match", ["get", "class"], "primary", 1, 0.75], | |
18, | |
2 | |
], | |
"line-color": "hsl(247, 10%, 87%)", | |
"line-gap-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
5, | |
["match", ["get", "class"], "primary", 0.75, 0.1], | |
18, | |
["match", ["get", "class"], "primary", 32, 26] | |
], | |
"line-opacity": ["step", ["zoom"], 0, 10, 1] | |
} | |
}, | |
{ | |
"id": "bridge-major-link-case", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, bridges"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 13, | |
"filter": [ | |
"all", | |
["==", ["get", "structure"], "bridge"], | |
[ | |
"match", | |
["get", "class"], | |
["motorway_link", "trunk_link"], | |
true, | |
false | |
], | |
["<=", ["get", "layer"], 1], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": {"line-join": "round"}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
12, | |
0.75, | |
20, | |
2 | |
], | |
"line-color": "hsl(247, 10%, 87%)", | |
"line-gap-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
12, | |
0.5, | |
14, | |
2, | |
18, | |
18 | |
] | |
} | |
}, | |
{ | |
"id": "bridge-motorway-trunk-case", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, bridges"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 13, | |
"filter": [ | |
"all", | |
["==", ["get", "structure"], "bridge"], | |
["match", ["get", "class"], ["motorway", "trunk"], true, false], | |
["<=", ["get", "layer"], 1], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": {"line-join": "round"}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
10, | |
1, | |
18, | |
2 | |
], | |
"line-color": "hsl(247, 10%, 87%)", | |
"line-gap-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
5, | |
0.75, | |
18, | |
32 | |
] | |
} | |
}, | |
{ | |
"id": "bridge-construction", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, bridges"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 14, | |
"filter": [ | |
"all", | |
["==", ["get", "structure"], "bridge"], | |
["==", ["get", "class"], "construction"], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": {}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
14, | |
2, | |
18, | |
18 | |
], | |
"line-color": "hsl(247, 10%, 87%)", | |
"line-dasharray": [ | |
"step", | |
["zoom"], | |
["literal", [0.4, 0.8]], | |
15, | |
["literal", [0.3, 0.6]], | |
16, | |
["literal", [0.2, 0.3]], | |
17, | |
["literal", [0.2, 0.25]], | |
18, | |
["literal", [0.15, 0.15]] | |
] | |
} | |
}, | |
{ | |
"id": "bridge-path", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, bridges"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 13, | |
"filter": [ | |
"all", | |
["==", ["get", "structure"], "bridge"], | |
["==", ["get", "class"], "path"], | |
["!=", ["get", "type"], "steps"], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": {"line-join": "round"}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
15, | |
1, | |
18, | |
4 | |
], | |
"line-color": "hsl(247, 10%, 87%)", | |
"line-dasharray": [ | |
"step", | |
["zoom"], | |
["literal", [1, 0]], | |
15, | |
["literal", [1.75, 1]], | |
16, | |
["literal", [1, 0.75]], | |
17, | |
["literal", [1, 0.5]] | |
] | |
} | |
}, | |
{ | |
"id": "bridge-steps", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, bridges"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 14, | |
"filter": [ | |
"all", | |
["==", ["get", "type"], "steps"], | |
["==", ["get", "structure"], "bridge"], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": {"line-join": "round"}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
15, | |
1, | |
16, | |
1.6, | |
18, | |
6 | |
], | |
"line-color": "hsl(247, 10%, 87%)", | |
"line-dasharray": [ | |
"step", | |
["zoom"], | |
["literal", [1, 0]], | |
15, | |
["literal", [1.75, 1]], | |
16, | |
["literal", [1, 0.75]], | |
17, | |
["literal", [0.3, 0.3]] | |
] | |
} | |
}, | |
{ | |
"id": "bridge-major-link", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, bridges"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 13, | |
"filter": [ | |
"all", | |
["==", ["get", "structure"], "bridge"], | |
[ | |
"match", | |
["get", "class"], | |
["motorway_link", "trunk_link"], | |
true, | |
false | |
], | |
["<=", ["get", "layer"], 1], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": {"line-cap": "round", "line-join": "round"}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
12, | |
0.5, | |
14, | |
2, | |
18, | |
18 | |
], | |
"line-color": "hsl(247, 10%, 87%)" | |
} | |
}, | |
{ | |
"id": "bridge-pedestrian", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, bridges"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 13, | |
"filter": [ | |
"all", | |
["==", ["get", "structure"], "bridge"], | |
["==", ["get", "class"], "pedestrian"], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": {"line-join": "round"}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
14, | |
0.5, | |
18, | |
12 | |
], | |
"line-color": "hsl(247, 10%, 87%)", | |
"line-dasharray": [ | |
"step", | |
["zoom"], | |
["literal", [1, 0]], | |
15, | |
["literal", [1.5, 0.4]], | |
16, | |
["literal", [1, 0.2]] | |
] | |
} | |
}, | |
{ | |
"id": "bridge-street-minor", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, bridges"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 13, | |
"filter": [ | |
"all", | |
["==", ["get", "structure"], "bridge"], | |
[ | |
"step", | |
["zoom"], | |
[ | |
"match", | |
["get", "class"], | |
["street", "street_limited", "track", "primary_link"], | |
true, | |
false | |
], | |
14, | |
[ | |
"match", | |
["get", "class"], | |
[ | |
"street", | |
"street_limited", | |
"track", | |
"primary_link", | |
"secondary_link", | |
"tertiary_link", | |
"service" | |
], | |
true, | |
false | |
] | |
], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": { | |
"line-cap": ["step", ["zoom"], "butt", 14, "round"], | |
"line-join": ["step", ["zoom"], "miter", 14, "round"] | |
}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
12, | |
0.5, | |
14, | |
[ | |
"match", | |
["get", "class"], | |
["street", "street_limited", "primary_link"], | |
2, | |
"track", | |
1, | |
0.5 | |
], | |
18, | |
[ | |
"match", | |
["get", "class"], | |
["street", "street_limited", "primary_link"], | |
18, | |
12 | |
] | |
], | |
"line-color": "hsl(247, 10%, 87%)", | |
"line-opacity": ["step", ["zoom"], 0, 14, 1] | |
} | |
}, | |
{ | |
"id": "bridge-primary-secondary-tertiary", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, bridges"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 13, | |
"filter": [ | |
"all", | |
["==", ["get", "structure"], "bridge"], | |
[ | |
"match", | |
["get", "class"], | |
["primary", "secondary", "tertiary"], | |
true, | |
false | |
], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": { | |
"line-cap": ["step", ["zoom"], "butt", 14, "round"], | |
"line-join": ["step", ["zoom"], "miter", 14, "round"] | |
}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
5, | |
["match", ["get", "class"], "primary", 0.75, 0.1], | |
18, | |
["match", ["get", "class"], "primary", 32, 26] | |
], | |
"line-color": "hsl(247, 10%, 87%)" | |
} | |
}, | |
{ | |
"id": "bridge-motorway-trunk", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, bridges"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 13, | |
"filter": [ | |
"all", | |
["==", ["get", "structure"], "bridge"], | |
["match", ["get", "class"], ["motorway", "trunk"], true, false], | |
["<=", ["get", "layer"], 1], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": {"line-cap": "round", "line-join": "round"}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
5, | |
0.75, | |
18, | |
32 | |
], | |
"line-color": "hsl(247, 10%, 87%)" | |
} | |
}, | |
{ | |
"id": "bridge-rail", | |
"type": "line", | |
"metadata": {"mapbox:group": "Transit, bridges"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 13, | |
"filter": [ | |
"all", | |
["==", ["get", "structure"], "bridge"], | |
[ | |
"match", | |
["get", "class"], | |
["major_rail", "minor_rail"], | |
true, | |
false | |
] | |
], | |
"layout": {"line-join": "round"}, | |
"paint": { | |
"line-color": "hsl(247, 5%, 95%)", | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
14, | |
0.5, | |
20, | |
1 | |
] | |
} | |
}, | |
{ | |
"id": "bridge-major-link-2-case", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, bridges-2"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 13, | |
"filter": [ | |
"all", | |
["==", ["get", "structure"], "bridge"], | |
[">=", ["get", "layer"], 2], | |
[ | |
"match", | |
["get", "class"], | |
["motorway_link", "trunk_link"], | |
true, | |
false | |
], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": {"line-join": "round"}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
12, | |
0.75, | |
20, | |
2 | |
], | |
"line-color": "hsl(247, 5%, 95%)", | |
"line-gap-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
12, | |
0.5, | |
14, | |
2, | |
18, | |
18 | |
] | |
} | |
}, | |
{ | |
"id": "bridge-motorway-trunk-2-case", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, bridges-2"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 13, | |
"filter": [ | |
"all", | |
["==", ["get", "structure"], "bridge"], | |
[">=", ["get", "layer"], 2], | |
["match", ["get", "class"], ["motorway", "trunk"], true, false], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": {"line-join": "round"}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
10, | |
1, | |
18, | |
2 | |
], | |
"line-color": "hsl(247, 5%, 95%)", | |
"line-gap-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
5, | |
0.75, | |
18, | |
32 | |
] | |
} | |
}, | |
{ | |
"id": "bridge-major-link-2", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, bridges-2"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 13, | |
"filter": [ | |
"all", | |
["==", ["get", "structure"], "bridge"], | |
[">=", ["get", "layer"], 2], | |
[ | |
"match", | |
["get", "class"], | |
["motorway_link", "trunk_link"], | |
true, | |
false | |
], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": {"line-cap": "round", "line-join": "round"}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
12, | |
0.5, | |
14, | |
2, | |
18, | |
18 | |
], | |
"line-color": "hsl(247, 10%, 100%)" | |
} | |
}, | |
{ | |
"id": "bridge-motorway-trunk-2", | |
"type": "line", | |
"metadata": {"mapbox:group": "Road network, bridges-2"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 13, | |
"filter": [ | |
"all", | |
["==", ["get", "structure"], "bridge"], | |
[">=", ["get", "layer"], 2], | |
["match", ["get", "class"], ["motorway", "trunk"], true, false], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": { | |
"line-cap": ["step", ["zoom"], "butt", 14, "round"], | |
"line-join": ["step", ["zoom"], "miter", 14, "round"] | |
}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["exponential", 1.5], | |
["zoom"], | |
5, | |
0.75, | |
18, | |
32 | |
], | |
"line-color": "hsl(247, 10%, 100%)" | |
} | |
}, | |
{ | |
"id": "admin-1-boundary-bg", | |
"type": "line", | |
"metadata": {"mapbox:group": "Administrative boundaries, admin"}, | |
"source": "composite", | |
"source-layer": "admin", | |
"filter": [ | |
"all", | |
["==", ["get", "admin_level"], 1], | |
["==", ["get", "maritime"], "false"], | |
["match", ["get", "worldview"], ["all", "US"], true, false] | |
], | |
"layout": {"line-join": "bevel"}, | |
"paint": { | |
"line-color": "hsl(247, 6%, 89%)", | |
"line-width": [ | |
"interpolate", | |
["linear"], | |
["zoom"], | |
7, | |
3.75, | |
12, | |
5.5 | |
], | |
"line-opacity": [ | |
"interpolate", | |
["linear"], | |
["zoom"], | |
7, | |
0, | |
8, | |
0.75 | |
], | |
"line-dasharray": [1, 0], | |
"line-translate": [0, 0], | |
"line-blur": ["interpolate", ["linear"], ["zoom"], 3, 0, 8, 3] | |
} | |
}, | |
{ | |
"id": "admin-0-boundary-bg", | |
"type": "line", | |
"metadata": {"mapbox:group": "Administrative boundaries, admin"}, | |
"source": "composite", | |
"source-layer": "admin", | |
"minzoom": 1, | |
"filter": [ | |
"all", | |
["==", ["get", "admin_level"], 0], | |
["==", ["get", "maritime"], "false"], | |
["match", ["get", "worldview"], ["all", "US"], true, false] | |
], | |
"layout": {}, | |
"paint": { | |
"line-width": [ | |
"interpolate", | |
["linear"], | |
["zoom"], | |
3, | |
3.5, | |
10, | |
8 | |
], | |
"line-color": "hsl(247, 6%, 89%)", | |
"line-opacity": [ | |
"interpolate", | |
["linear"], | |
["zoom"], | |
3, | |
0, | |
4, | |
0.5 | |
], | |
"line-translate": [0, 0], | |
"line-blur": ["interpolate", ["linear"], ["zoom"], 3, 0, 10, 2] | |
} | |
}, | |
{ | |
"id": "admin-1-boundary", | |
"type": "line", | |
"metadata": {"mapbox:group": "Administrative boundaries, admin"}, | |
"source": "composite", | |
"source-layer": "admin", | |
"filter": [ | |
"all", | |
["==", ["get", "admin_level"], 1], | |
["==", ["get", "maritime"], "false"], | |
["match", ["get", "worldview"], ["all", "US"], true, false] | |
], | |
"layout": {"line-join": "round", "line-cap": "round"}, | |
"paint": { | |
"line-dasharray": [ | |
"step", | |
["zoom"], | |
["literal", [2, 0]], | |
7, | |
["literal", [2, 2, 6, 2]] | |
], | |
"line-width": [ | |
"interpolate", | |
["linear"], | |
["zoom"], | |
7, | |
0.75, | |
12, | |
1.5 | |
], | |
"line-opacity": [ | |
"interpolate", | |
["linear"], | |
["zoom"], | |
2, | |
0, | |
3, | |
1 | |
], | |
"line-color": [ | |
"interpolate", | |
["linear"], | |
["zoom"], | |
3, | |
"hsl(247, 1%, 88%)", | |
7, | |
"hsl(247, 10%, 72%)" | |
] | |
} | |
}, | |
{ | |
"id": "admin-0-boundary", | |
"type": "line", | |
"metadata": {"mapbox:group": "Administrative boundaries, admin"}, | |
"source": "composite", | |
"source-layer": "admin", | |
"minzoom": 1, | |
"filter": [ | |
"all", | |
["==", ["get", "admin_level"], 0], | |
["==", ["get", "disputed"], "false"], | |
["==", ["get", "maritime"], "false"], | |
["match", ["get", "worldview"], ["all", "US"], true, false] | |
], | |
"layout": {"line-join": "round", "line-cap": "round"}, | |
"paint": { | |
"line-color": "hsl(247, 1%, 72%)", | |
"line-width": [ | |
"interpolate", | |
["linear"], | |
["zoom"], | |
3, | |
0.5, | |
10, | |
2 | |
] | |
} | |
}, | |
{ | |
"id": "admin-0-boundary-disputed", | |
"type": "line", | |
"metadata": {"mapbox:group": "Administrative boundaries, admin"}, | |
"source": "composite", | |
"source-layer": "admin", | |
"minzoom": 1, | |
"filter": [ | |
"all", | |
["==", ["get", "disputed"], "true"], | |
["==", ["get", "admin_level"], 0], | |
["==", ["get", "maritime"], "false"], | |
["match", ["get", "worldview"], ["all", "US"], true, false] | |
], | |
"layout": {"line-join": "round"}, | |
"paint": { | |
"line-dasharray": [1.5, 1.5], | |
"line-color": "hsl(247, 1%, 72%)", | |
"line-width": [ | |
"interpolate", | |
["linear"], | |
["zoom"], | |
3, | |
0.5, | |
10, | |
2 | |
] | |
} | |
}, | |
{ | |
"id": "airport-label", | |
"type": "symbol", | |
"metadata": {"mapbox:group": "Transit, transit-labels"}, | |
"source": "composite", | |
"source-layer": "airport_label", | |
"minzoom": 8, | |
"layout": { | |
"text-line-height": 1.1, | |
"text-size": ["step", ["get", "sizerank"], 18, 9, 12], | |
"icon-image": [ | |
"step", | |
["get", "sizerank"], | |
["concat", ["get", "maki"], "-15"], | |
9, | |
["concat", ["get", "maki"], "-11"] | |
], | |
"text-font": [ | |
"DIN Offc Pro Medium", | |
"Arial Unicode MS Regular" | |
], | |
"text-offset": [0, 0.75], | |
"text-rotation-alignment": "viewport", | |
"text-anchor": "top", | |
"text-field": [ | |
"step", | |
["get", "sizerank"], | |
["coalesce", ["get", "name_en"], ["get", "name"]], | |
15, | |
["get", "ref"] | |
], | |
"text-letter-spacing": 0.01, | |
"text-max-width": 9 | |
}, | |
"paint": { | |
"text-color": "hsl(247, 10%, 50%)", | |
"text-halo-color": "hsl(247, 8%, 100%)", | |
"text-halo-width": 1 | |
} | |
}, | |
{ | |
"id": "subway-stops", | |
"type": "symbol", | |
"metadata": {"mapbox:group": "Transit, transit-labels"}, | |
"source": "composite", | |
"source-layer": "subway_stops", | |
"layout": {"icon-image": "rail-metro-11"}, | |
"paint": {} | |
}, | |
{ | |
"id": "subway-lines (1)", | |
"type": "line", | |
"metadata": {"mapbox:group": "Transit, transit-labels"}, | |
"source": "composite", | |
"source-layer": "subway_lines", | |
"paint": { | |
"line-color": [ | |
"match", | |
["get", "rt_symbol"], | |
["A"], | |
"hsla(219, 100%, 33%, 0.4)", | |
["B"], | |
"hsla(19, 100%, 55%, 0.4)", | |
["G"], | |
"hsla(101, 48%, 51%, 0.4)", | |
["J"], | |
"hsla(30, 50%, 40%, 0.4)", | |
["L"], | |
"hsla(216, 3%, 66%, 0.4)", | |
["N"], | |
"hsla(48, 98%, 51%, 0.4)", | |
["1"], | |
"hsla(2, 85%, 56%, 0.4)", | |
["4"], | |
"hsla(144, 100%, 29%, 0.4)", | |
["7"], | |
"hsla(305, 57%, 46%, 0.4)", | |
"hsl(0, 0%, 100%)" | |
], | |
"line-opacity": 0.8, | |
"line-width": 1 | |
} | |
}, | |
{ | |
"id": "mn-rbus", | |
"type": "symbol", | |
"metadata": {"mapbox:group": "Transit, transit-labels"}, | |
"source": "composite", | |
"source-layer": "mn_rbus", | |
"layout": { | |
"icon-image": "bus-11", | |
"icon-size": 0.7, | |
"text-anchor": "top", | |
"text-font": ["Overpass Thin", "Arial Unicode MS Regular"], | |
"text-offset": [0, 1], | |
"text-size": 12 | |
}, | |
"paint": {"icon-opacity": 0.7, "text-color": "hsl(0, 0%, 22%)"} | |
}, | |
{ | |
"id": "road-label", | |
"type": "symbol", | |
"metadata": {"mapbox:group": "Road network, road-labels"}, | |
"source": "composite", | |
"source-layer": "road", | |
"minzoom": 10, | |
"filter": [ | |
"step", | |
["zoom"], | |
[ | |
"match", | |
["get", "class"], | |
["motorway", "trunk", "primary", "secondary", "tertiary"], | |
true, | |
false | |
], | |
12, | |
[ | |
"match", | |
["get", "class"], | |
[ | |
"motorway", | |
"trunk", | |
"primary", | |
"secondary", | |
"tertiary", | |
"pedestrian", | |
"street", | |
"street_limited" | |
], | |
true, | |
false | |
], | |
15, | |
[ | |
"match", | |
["get", "class"], | |
["path", "golf", "ferry", "aerialway"], | |
false, | |
true | |
] | |
], | |
"layout": { | |
"text-size": [ | |
"interpolate", | |
["linear"], | |
["zoom"], | |
10, | |
[ | |
"match", | |
["get", "class"], | |
[ | |
"motorway", | |
"trunk", | |
"primary", | |
"secondary", | |
"tertiary" | |
], | |
10, | |
[ | |
"motorway_link", | |
"trunk_link", | |
"primary_link", | |
"secondary_link", | |
"tertiary_link", | |
"pedestrian", | |
"street", | |
"street_limited" | |
], | |
9, | |
6.5 | |
], | |
18, | |
[ | |
"match", | |
["get", "class"], | |
[ | |
"motorway", | |
"trunk", | |
"primary", | |
"secondary", | |
"tertiary" | |
], | |
16, | |
[ | |
"motorway_link", | |
"trunk_link", | |
"primary_link", | |
"secondary_link", | |
"tertiary_link", | |
"pedestrian", | |
"street", | |
"street_limited" | |
], | |
14, | |
13 | |
] | |
], | |
"text-max-angle": 30, | |
"text-font": [ | |
"DIN Offc Pro Medium", | |
"Arial Unicode MS Regular" | |
], | |
"symbol-placement": "line", | |
"text-padding": 1, | |
"text-rotation-alignment": "map", | |
"text-pitch-alignment": "viewport", | |
"text-field": ["coalesce", ["get", "name_en"], ["get", "name"]], | |
"text-letter-spacing": 0.01 | |
}, | |
"paint": { | |
"text-color": "hsl(247, 10%, 50%)", | |
"text-halo-color": "hsl(247, 8%, 100%)", | |
"text-halo-width": 1, | |
"text-halo-blur": 1 | |
} | |
}, | |
{ | |
"id": "waterway-label", | |
"type": "symbol", | |
"metadata": {"mapbox:group": "Natural labels, natural-labels"}, | |
"source": "composite", | |
"source-layer": "natural_label", | |
"minzoom": 13, | |
"filter": [ | |
"all", | |
[ | |
"match", | |
["get", "class"], | |
["canal", "river", "stream"], | |
true, | |
false | |
], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": { | |
"text-font": [ | |
"DIN Offc Pro Italic", | |
"Arial Unicode MS Regular" | |
], | |
"text-max-angle": 30, | |
"symbol-spacing": [ | |
"interpolate", | |
["linear", 1], | |
["zoom"], | |
15, | |
250, | |
17, | |
400 | |
], | |
"text-size": [ | |
"interpolate", | |
["linear"], | |
["zoom"], | |
13, | |
12, | |
18, | |
16 | |
], | |
"symbol-placement": "line", | |
"text-pitch-alignment": "viewport", | |
"text-field": ["coalesce", ["get", "name_en"], ["get", "name"]] | |
}, | |
"paint": {"text-color": "hsl(247, 10%, 59%)"} | |
}, | |
{ | |
"id": "natural-line-label", | |
"type": "symbol", | |
"metadata": {"mapbox:group": "Natural labels, natural-labels"}, | |
"source": "composite", | |
"source-layer": "natural_label", | |
"minzoom": 4, | |
"filter": [ | |
"all", | |
[ | |
"match", | |
["get", "class"], | |
["glacier", "landform"], | |
true, | |
false | |
], | |
["==", ["geometry-type"], "LineString"], | |
["<=", ["get", "filterrank"], 1] | |
], | |
"layout": { | |
"text-size": [ | |
"step", | |
["zoom"], | |
["step", ["get", "sizerank"], 18, 5, 12], | |
17, | |
["step", ["get", "sizerank"], 18, 13, 12] | |
], | |
"text-max-angle": 30, | |
"text-field": ["coalesce", ["get", "name_en"], ["get", "name"]], | |
"text-font": [ | |
"DIN Offc Pro Medium", | |
"Arial Unicode MS Regular" | |
], | |
"symbol-placement": "line-center", | |
"text-pitch-alignment": "viewport" | |
}, | |
"paint": { | |
"text-halo-width": 0.5, | |
"text-halo-color": "hsl(247, 8%, 100%)", | |
"text-halo-blur": 0.5, | |
"text-color": "hsl(247, 10%, 50%)" | |
} | |
}, | |
{ | |
"id": "water-line-label", | |
"type": "symbol", | |
"metadata": {"mapbox:group": "Natural labels, natural-labels"}, | |
"source": "composite", | |
"source-layer": "natural_label", | |
"filter": [ | |
"all", | |
[ | |
"match", | |
["get", "class"], | |
["bay", "ocean", "reservoir", "sea", "water"], | |
true, | |
false | |
], | |
["==", ["geometry-type"], "LineString"] | |
], | |
"layout": { | |
"text-size": [ | |
"interpolate", | |
["linear"], | |
["zoom"], | |
7, | |
["step", ["get", "sizerank"], 24, 6, 18, 12, 12], | |
10, | |
["step", ["get", "sizerank"], 18, 9, 12], | |
18, | |
["step", ["get", "sizerank"], 18, 9, 16] | |
], | |
"text-max-angle": 30, | |
"text-letter-spacing": [ | |
"match", | |
["get", "class"], | |
"ocean", | |
0.25, | |
["sea", "bay"], | |
0.15, | |
0 | |
], | |
"text-font": [ | |
"DIN Offc Pro Italic", | |
"Arial Unicode MS Regular" | |
], | |
"symbol-placement": "line-center", | |
"text-pitch-alignment": "viewport", | |
"text-field": ["coalesce", ["get", "name_en"], ["get", "name"]] | |
}, | |
"paint": {"text-color": "hsl(247, 10%, 59%)"} | |
}, | |
{ | |
"id": "water-point-label", | |
"type": "symbol", | |
"metadata": {"mapbox:group": "Natural labels, natural-labels"}, | |
"source": "composite", | |
"source-layer": "natural_label", | |
"filter": [ | |
"all", | |
[ | |
"match", | |
["get", "class"], | |
["bay", "ocean", "reservoir", "sea", "water"], | |
true, | |
false | |
], | |
["==", ["geometry-type"], "Point"] | |
], | |
"layout": { | |
"text-line-height": 1.3, | |
"text-size": [ | |
"interpolate", | |
["linear"], | |
["zoom"], | |
7, | |
["step", ["get", "sizerank"], 24, 6, 18, 12, 12], | |
10, | |
["step", ["get", "sizerank"], 18, 9, 12] | |
], | |
"text-font": [ | |
"DIN Offc Pro Italic", | |
"Arial Unicode MS Regular" | |
], | |
"text-field": ["coalesce", ["get", "name_en"], ["get", "name"]], | |
"text-letter-spacing": [ | |
"match", | |
["get", "class"], | |
"ocean", | |
0.25, | |
["bay", "sea"], | |
0.15, | |
0.01 | |
], | |
"text-max-width": [ | |
"match", | |
["get", "class"], | |
"ocean", | |
4, | |
"sea", | |
5, | |
["bay", "water"], | |
7, | |
10 | |
] | |
}, | |
"paint": {"text-color": "hsl(247, 10%, 59%)"} | |
}, | |
{ | |
"id": "settlement-subdivision-label", | |
"type": "symbol", | |
"metadata": {"mapbox:group": "Place labels, place-labels"}, | |
"source": "composite", | |
"source-layer": "place_label", | |
"minzoom": 10, | |
"maxzoom": 15, | |
"filter": [ | |
"all", | |
["==", ["get", "class"], "settlement_subdivision"], | |
["<=", ["get", "filterrank"], 4] | |
], | |
"layout": { | |
"text-field": ["coalesce", ["get", "name_en"], ["get", "name"]], | |
"text-transform": "uppercase", | |
"text-font": [ | |
"DIN Offc Pro Regular", | |
"Arial Unicode MS Regular" | |
], | |
"text-letter-spacing": [ | |
"match", | |
["get", "type"], | |
"suburb", | |
0.15, | |
0.1 | |
], | |
"text-max-width": 7, | |
"text-padding": 3, | |
"text-size": [ | |
"interpolate", | |
["cubic-bezier", 0.5, 0, 1, 1], | |
["zoom"], | |
11, | |
["match", ["get", "type"], "suburb", 11, 10.5], | |
15, | |
["match", ["get", "type"], "suburb", 17, 16] | |
] | |
}, | |
"paint": { | |
"text-halo-color": "hsl(247, 8%, 100%)", | |
"text-halo-width": 1, | |
"text-color": "hsl(247, 10%, 70%)", | |
"text-halo-blur": 0.5 | |
} | |
}, | |
{ | |
"id": "settlement-minor-label", | |
"type": "symbol", | |
"metadata": {"mapbox:group": "Place labels, place-labels"}, | |
"source": "composite", | |
"source-layer": "place_label", | |
"maxzoom": 15, | |
"filter": [ | |
"all", | |
["<=", ["get", "filterrank"], 3], | |
["==", ["get", "class"], "settlement"], | |
[ | |
"step", | |
["zoom"], | |
true, | |
8, | |
[">=", ["get", "symbolrank"], 11], | |
10, | |
[">=", ["get", "symbolrank"], 12], | |
11, | |
[">=", ["get", "symbolrank"], 13], | |
12, | |
[">=", ["get", "symbolrank"], 15], | |
13, | |
[">=", ["get", "symbolrank"], 11], | |
14, | |
[">=", ["get", "symbolrank"], 13] | |
] | |
], | |
"layout": { | |
"text-line-height": 1.1, | |
"text-size": [ | |
"interpolate", | |
["cubic-bezier", 0.2, 0, 0.9, 1], | |
["zoom"], | |
3, | |
[ | |
"step", | |
["get", "symbolrank"], | |
12, | |
9, | |
11, | |
10, | |
10.5, | |
12, | |
9.5, | |
14, | |
8.5, | |
16, | |
6.5, | |
17, | |
4 | |
], | |
13, | |
[ | |
"step", | |
["get", "symbolrank"], | |
25, | |
9, | |
23, | |
10, | |
21, | |
11, | |
19, | |
12, | |
18, | |
13, | |
17, | |
15, | |
15 | |
] | |
], | |
"icon-image": [ | |
"case", | |
["==", ["get", "capital"], 2], | |
"border-dot-13", | |
[ | |
"step", | |
["get", "symbolrank"], | |
"dot-11", | |
9, | |
"dot-10", | |
11, | |
"dot-9" | |
] | |
], | |
"text-font": [ | |
"DIN Offc Pro Regular", | |
"Arial Unicode MS Regular" | |
], | |
"text-justify": [ | |
"step", | |
["zoom"], | |
[ | |
"match", | |
["get", "text_anchor"], | |
["left", "bottom-left", "top-left"], | |
"left", | |
["right", "bottom-right", "top-right"], | |
"right", | |
"center" | |
], | |
8, | |
"center" | |
], | |
"text-offset": [ | |
"step", | |
["zoom"], | |
[ | |
"match", | |
["get", "capital"], | |
2, | |
[ | |
"match", | |
["get", "text_anchor"], | |
"bottom", | |
["literal", [0, -0.3]], | |
"bottom-left", | |
["literal", [0.3, -0.1]], | |
"left", | |
["literal", [0.45, 0.1]], | |
"top-left", | |
["literal", [0.3, 0.1]], | |
"top", | |
["literal", [0, 0.3]], | |
"top-right", | |
["literal", [-0.3, 0.1]], | |
"right", | |
["literal", [-0.45, 0]], | |
"bottom-right", | |
["literal", [-0.3, -0.1]], | |
["literal", [0, -0.3]] | |
], | |
[ | |
"match", | |
["get", "text_anchor"], | |
"bottom", | |
["literal", [0, -0.25]], | |
"bottom-left", | |
["literal", [0.2, -0.05]], | |
"left", | |
["literal", [0.4, 0.05]], | |
"top-left", | |
["literal", [0.2, 0.05]], | |
"top", | |
["literal", [0, 0.25]], | |
"top-right", | |
["literal", [-0.2, 0.05]], | |
"right", | |
["literal", [-0.4, 0.05]], | |
"bottom-right", | |
["literal", [-0.2, -0.05]], | |
["literal", [0, -0.25]] | |
] | |
], | |
8, | |
["literal", [0, 0]] | |
], | |
"text-anchor": [ | |
"step", | |
["zoom"], | |
["get", "text_anchor"], | |
8, | |
"center" | |
], | |
"text-field": ["coalesce", ["get", "name_en"], ["get", "name"]], | |
"text-max-width": 7 | |
}, | |
"paint": { | |
"text-color": [ | |
"step", | |
["get", "symbolrank"], | |
"hsl(247, 10%, 50%)", | |
11, | |
"hsl(247, 10%, 63%)", | |
16, | |
"hsl(247, 10%, 72%)" | |
], | |
"text-halo-color": "hsl(247, 8%, 100%)", | |
"text-halo-width": 1, | |
"icon-opacity": ["step", ["zoom"], 1, 8, 0], | |
"text-halo-blur": 1 | |
} | |
}, | |
{ | |
"id": "state-label", | |
"type": "symbol", | |
"metadata": {"mapbox:group": "Place labels, place-labels"}, | |
"source": "composite", | |
"source-layer": "place_label", | |
"minzoom": 3, | |
"maxzoom": 9, | |
"filter": ["==", ["get", "class"], "state"], | |
"layout": { | |
"text-size": [ | |
"interpolate", | |
["cubic-bezier", 0.85, 0.7, 0.65, 1], | |
["zoom"], | |
4, | |
["step", ["get", "symbolrank"], 10, 6, 9.5, 7, 9], | |
9, | |
["step", ["get", "symbolrank"], 24, 6, 18, 7, 14] | |
], | |
"text-transform": "uppercase", | |
"text-font": ["DIN Offc Pro Bold", "Arial Unicode MS Bold"], | |
"text-field": [ | |
"step", | |
["zoom"], | |
[ | |
"step", | |
["get", "symbolrank"], | |
["coalesce", ["get", "name_en"], ["get", "name"]], | |
5, | |
[ | |
"coalesce", | |
["get", "abbr"], | |
["get", "name_en"], | |
["get", "name"] | |
] | |
], | |
5, | |
["coalesce", ["get", "name_en"], ["get", "name"]] | |
], | |
"text-letter-spacing": 0.15, | |
"text-max-width": 6 | |
}, | |
"paint": { | |
"text-color": "hsl(247, 10%, 72%)", | |
"text-halo-color": "hsl(247, 8%, 100%)", | |
"text-halo-width": 1 | |
} | |
}, | |
{ | |
"id": "country-label", | |
"type": "symbol", | |
"metadata": {"mapbox:group": "Place labels, place-labels"}, | |
"source": "composite", | |
"source-layer": "place_label", | |
"minzoom": 1, | |
"maxzoom": 10, | |
"filter": ["==", ["get", "class"], "country"], | |
"layout": { | |
"text-line-height": 1.1, | |
"text-size": [ | |
"interpolate", | |
["cubic-bezier", 0.2, 0, 0.7, 1], | |
["zoom"], | |
1, | |
["step", ["get", "symbolrank"], 11, 4, 9, 5, 8], | |
9, | |
["step", ["get", "symbolrank"], 28, 4, 22, 5, 21] | |
], | |
"icon-image": "dot-11", | |
"text-font": [ | |
"DIN Offc Pro Medium", | |
"Arial Unicode MS Regular" | |
], | |
"text-justify": [ | |
"step", | |
["zoom"], | |
[ | |
"match", | |
["get", "text_anchor"], | |
["left", "bottom-left", "top-left"], | |
"left", | |
["right", "bottom-right", "top-right"], | |
"right", | |
"center" | |
], | |
7, | |
"center" | |
], | |
"text-offset": [ | |
"step", | |
["zoom"], | |
[ | |
"match", | |
["get", "text_anchor"], | |
"bottom", | |
["literal", [0, -0.25]], | |
"bottom-left", | |
["literal", [0.2, -0.05]], | |
"left", | |
["literal", [0.4, 0.05]], | |
"top-left", | |
["literal", [0.2, 0.05]], | |
"top", | |
["literal", [0, 0.25]], | |
"top-right", | |
["literal", [-0.2, 0.05]], | |
"right", | |
["literal", [-0.4, 0.05]], | |
"bottom-right", | |
["literal", [-0.2, -0.05]], | |
["literal", [0, -0.25]] | |
], | |
7, | |
["literal", [0, 0]] | |
], | |
"text-anchor": [ | |
"step", | |
["zoom"], | |
["coalesce", ["get", "text_anchor"], "center"], | |
7, | |
"center" | |
], | |
"text-field": ["coalesce", ["get", "name_en"], ["get", "name"]], | |
"text-max-width": 6 | |
}, | |
"paint": { | |
"icon-opacity": [ | |
"step", | |
["zoom"], | |
["case", ["has", "text_anchor"], 1, 0], | |
7, | |
0 | |
], | |
"text-color": "hsl(247, 10%, 50%)", | |
"text-halo-color": "hsl(247, 8%, 100%)", | |
"text-halo-width": 1.25 | |
} | |
} | |
], | |
"created": "2019-10-10T15:47:35.455Z", | |
"id": "ck1kvleww97pz1ck2mbu6k6hj", | |
"modified": "2019-10-17T15:43:58.792Z", | |
"owner": "zhik", | |
"visibility": "private", | |
"draft": false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment