Created
November 4, 2021 00:13
-
-
Save CraigglesO/9fe4dd47f15719ac6254dff89ecf065b to your computer and use it in GitHub Desktop.
Streets style
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": 2, | |
"name": "s2maps-streets", | |
"center": [-122.4585607773497, 37.778443127730476], | |
"zoom": 0, | |
"minzoom": -1, | |
"maxzoom": 18.99, | |
"sources": { | |
"streets": "s2maps://data/s2maps/streets-v3.s2tiles", | |
"terrain": "s2maps://data/s2maps/terrain-v1.s2tiles" | |
}, | |
"fonts": { | |
"noto-sans-regular": "https://data.s2maps.io/glyphs/Noto/NotoSansRegular.font", | |
"noto-sans-medium": "https://data.s2maps.io/glyphs/Noto/NotoSansMedium.font", | |
"roboto-regular": { | |
"path": "https://data.s2maps.io/glyphs/Roboto/RobotoRegular.font", | |
"fallback": "noto-sans-regular" | |
}, | |
"roboto-medium": { | |
"path": "https://data.s2maps.io/glyphs/Roboto/RobotoMedium.font", | |
"fallback": "noto-sans-medium" | |
} | |
}, | |
"icons": { | |
"street-icons": "https://data.s2maps.io/glyphs/streets/streets.icon" | |
}, | |
"wallpaper": { | |
"background-color": "#030a2d", | |
"fade-1": "rgb(138, 204, 255)", | |
"fade-2": "rgb(217, 255, 255)", | |
"halo": "rgb(230, 255, 255)" | |
}, | |
"colorBlind": false, | |
"layers": [ | |
{ | |
"name": "background", | |
"type": "fill", | |
"opaque": true, | |
"source": "mask", | |
"layout": {}, | |
"paint": { | |
"color": [ | |
"input-range", | |
"zoom", | |
"expo", | |
1.7, | |
2.75, | |
"#f9f7e7", | |
3, | |
"#f5f5f5", | |
6.5, | |
"#f0e9d7", | |
9, | |
"#f0e9d7", | |
13, | |
"#e8e8e8", | |
14, | |
"#f8f9fa" | |
] | |
} | |
}, | |
{ | |
"name": "landcover", | |
"source": "terrain", | |
"layer": "landcover", | |
"type": "fill", | |
"minzoom": 0, | |
"maxzoom": 3, | |
"opaque": true, | |
"layout": {}, | |
"paint": { | |
"color": [ | |
"data-condition", | |
["class", "==", "snow"], | |
"#ffffff", | |
["class", "==", "wood"], | |
"#93d2a5", | |
["class", "==", "tree"], | |
"#a8dab5", | |
["class", "==", "crop"], | |
"#bbe2c6", | |
["class", "==", "shrub"], | |
"#f1e9d7", | |
["class", "==", "wasteland"], | |
"#e8e8e1", | |
"default", | |
"#93d2a5" | |
] | |
} | |
}, | |
{ | |
"name": "landuse", | |
"source": "streets", | |
"layer": "landuse", | |
"type": "fill", | |
"opaque": true, | |
"filter": [ | |
"or", | |
["class", "==", "aeroway"], | |
[ | |
"type", "has", ["park", "national_park", "protected_area", | |
"grass", "grassland", "garden", "meadow", "farmland", "heath", | |
"swamp", "wetland", "zoo", "cemetery", "sand", "beach", "desert", | |
"hospital", "school", "parking", "glacier", | |
"quarry", "retail", "urban", "pitch"] | |
] | |
], | |
"minzoom": 4, | |
"layout": {}, | |
"paint": { | |
"color": [ | |
"data-condition", | |
["type", "==", "parking"], | |
"rgb(241, 243, 244)", | |
["type", "==", "wetland"], | |
"rgb(210, 233, 255)", | |
["type", "==", "quarry"], | |
"rgb(206, 208, 211)", | |
["type", "==", "glacier"], | |
"rgb(249, 249, 249)", | |
["type", "==", "beach"], | |
"rgb(255, 239, 195)", | |
["type", "==", "cemetery"], | |
"rgb(208, 236, 208)", | |
["type", "==", "pitch"], | |
"#9dd2ac", | |
["type", "has", ["grass", "grassland", "garden", "meadow", "swamp", "zoo"]], | |
"#a8dab5", | |
["type", "has", ["park", "national_park", "protected_area"]], | |
"#aee0bc", | |
["type", "has", ["apron", "airstrip"]], | |
"#d4d8ea", | |
["class", "==", "aeroway"], | |
"rgb(219, 222, 235)", | |
["type", "has", ["farmland", "heath"]], | |
"rgb(228, 234, 210)", | |
["type", "==", "hospital"], | |
"rgb(252, 228, 228)", | |
["type", "==", "school"], | |
"rgb(226, 233, 238)", | |
["type", "==", "retail"], | |
"rgb(254, 245, 220)", | |
["type", "has", ["desert", "sand"]], | |
"rgb(241, 233, 195)", | |
["type", "==", "urban"], | |
[ | |
"input-range", | |
"zoom", | |
"lin", | |
13, | |
"#e9eaed", | |
14, | |
"#f8f9fa" | |
], | |
"default", | |
"rgba(0, 0, 0, 0)" | |
] | |
} | |
}, | |
{ | |
"name": "landuse_transparent", | |
"source": "streets", | |
"layer": "landuse", | |
"type": "fill", | |
"filter": ["type", "has", ["aboriginal_lands", "military"]], | |
"layout": {}, | |
"paint": { | |
"color": [ | |
"data-condition", | |
["type", "==", "aboriginal_lands"], | |
"rgba(240, 242, 240, 0.5)", | |
["type", "==", "military"], | |
"rgba(226, 226, 224, 0.5)", | |
"default", | |
"rgba(0, 0, 0, 0)" | |
], | |
"opacity": [ | |
"input-range", | |
"zoom", | |
"expo", | |
1.5, | |
9, | |
1, | |
10, | |
0 | |
] | |
} | |
}, | |
{ | |
"name": "golf", | |
"source": "streets", | |
"layer": "landuse", | |
"type": "fill", | |
"opaque": true, | |
"filter": [ | |
"and", | |
["class", "==", "golf"], | |
["type", "has", ["course", "rough", "fairway", "green", "bunker"]] | |
], | |
"minzoom": 0, | |
"layout": {}, | |
"paint": { | |
"color": [ | |
"data-condition", | |
["type", "==", "bunker"], | |
"rgb(255, 239, 195)", | |
["type", "==", "green"], | |
"rgb(233, 251, 217)", | |
["type", "==", "fairway"], | |
"rgb(218, 245, 205)", | |
["type", "has", ["course", "rough"]], | |
"rgb(201, 238, 201)", | |
"default", | |
"rgba(0, 0, 0, 0)" | |
] | |
} | |
}, | |
{ | |
"name": "water", | |
"source": "streets", | |
"filter": ["class", "!has", ["bay", "reef", "shoal"]], | |
"layer": "water", | |
"type": "fill", | |
"opaque": true, | |
"minzoom": 0, | |
"layout": {}, | |
"paint": { | |
"color": "#86bff2" | |
} | |
}, | |
{ | |
"name": "reef_shoal", | |
"source": "streets", | |
"filter": ["class", "has", ["reef", "shoal"]], | |
"layer": "water", | |
"type": "fill", | |
"opaque": true, | |
"minzoom": 0, | |
"layout": {}, | |
"paint": { | |
"color": "rgb(185, 225, 255)" | |
} | |
}, | |
{ | |
"name": "hillshade", | |
"source": "terrain", | |
"layer": "hillshade", | |
"type": "fill", | |
"minzoom": 0, | |
"maxzoom": 10, | |
"layout": {}, | |
"paint": { | |
"color": [ | |
"data-condition", | |
["and", ["class", "==", "shade"], ["level", "==", 3]], | |
"rgba(31, 81, 56, 0.25)", | |
["and", ["class", "==", "shade"], ["level", "==", 2]], | |
"rgba(31, 81, 56, 0.2)", | |
["and", ["class", "==", "shade"], ["level", "==", 1]], | |
"rgba(31, 81, 56, 0.15)", | |
["and", ["class", "==", "shade"], ["level", "==", 0]], | |
"rgba(31, 81, 56, 0.1)", | |
["and", ["class", "==", "highlight"], ["level", "==", 1]], | |
"rgba(255, 254, 250, 0.4)", | |
["and", ["class", "==", "highlight"], ["level", "==", 0]], | |
"rgba(255, 254, 250, 0.2)", | |
"default", | |
"rgba(0, 0, 0, 0)" | |
], | |
"opacity": [ | |
"input-range", | |
"zoom", | |
"expo", | |
1.75, | |
10.5, | |
1, | |
11, | |
0 | |
] | |
} | |
}, | |
{ | |
"name": "parcel-lines", | |
"source": "streets", | |
"layer": "parcel", | |
"type": "line", | |
"minzoom": 15, | |
"layout": { | |
"cap": "butt", | |
"join": "bevel" | |
}, | |
"paint": { | |
"color": [ | |
"input-range", | |
"zoom", | |
"expo", | |
1.5, | |
15, | |
"rgba(219, 222, 227, 0)", | |
16, | |
"#dbdee3" | |
], | |
"width": 1.5 | |
} | |
}, | |
{ | |
"name": "water_lines", | |
"source": "streets", | |
"layer": "water", | |
"onlyLines": true, | |
"minzoom": 10, | |
"filter": ["class", "has", ["river", "riverbank", "stream", "canal", "drain", "ditch"]], | |
"type": "line", | |
"layout": { | |
"cap": "butt", | |
"join": "bevel" | |
}, | |
"paint": { | |
"color": "#86bff2", | |
"width": [ | |
"input-range", | |
"zoom", | |
"expo", | |
1.5, | |
9, | |
1, | |
12, | |
2.5 | |
] | |
} | |
}, | |
{ | |
"name": "aboriginal_border", | |
"source": "streets", | |
"layer": "landuse", | |
"filter": ["type", "==", "aboriginal_lands"], | |
"minzoom": 3, | |
"type": "line", | |
"layout": { | |
"cap": [ | |
"input-range", | |
"zoom", | |
"step", | |
0, | |
"butt", | |
12, | |
"round" | |
], | |
"join": "bevel" | |
}, | |
"paint": { | |
"color": "rgb(198, 212, 205)", | |
"width": 1.5 | |
} | |
}, | |
{ | |
"name": "motor_trunk_borders_tunnel", | |
"source": "streets", | |
"layer": "transport", | |
"filter": [ | |
"and", | |
["tunnel", "==", true], | |
["class", "==", "highway"], | |
["type", "has", ["motorway", "motorway_link", "trunk", "trunk_link"]] | |
], | |
"type": "line", | |
"minzoom": 2, | |
"layout": { | |
"cap": "round", | |
"join": "bevel" | |
}, | |
"paint": { | |
"color": "#afafaf", | |
"width": [ | |
"data-condition", | |
["type", "has", ["motorway_link", "trunk_link"]], | |
[ | |
"input-range", | |
"zoom", | |
"expo", | |
1.5, | |
2, | |
1.33, | |
7, | |
1.66, | |
10, | |
2.66, | |
13, | |
8.66, | |
18, | |
40 | |
], | |
"default", | |
[ | |
"input-range", | |
"zoom", | |
"expo", | |
1.5, | |
2, | |
2, | |
7, | |
2.5, | |
10, | |
4, | |
13, | |
13, | |
18, | |
60 | |
] | |
] | |
} | |
}, | |
{ | |
"name": "motor_trunk_tunnel", | |
"source": "streets", | |
"layer": "transport", | |
"filter": [ | |
"and", | |
["tunnel", "==", true], | |
["class", "==", "highway"], | |
["type", "has", ["motorway", "motorway_link", "trunk", "trunk_link"]] | |
], | |
"type": "line", | |
"minzoom": 4, | |
"layout": { | |
"cap": "round", | |
"join": "bevel" | |
}, | |
"paint": { | |
"color": "#e3e3e3", | |
"width": [ | |
"data-condition", | |
["type", "has", ["motorway_link", "trunk_link"]], | |
[ | |
"input-range", | |
"zoom", | |
"expo", | |
1.5, | |
2, | |
0.66, | |
7, | |
0.833, | |
10, | |
1, | |
13, | |
6.66, | |
18, | |
36.75 | |
], | |
"default", | |
[ | |
"input-range", | |
"zoom", | |
"expo", | |
1.5, | |
2, | |
1, | |
7, | |
1.25, | |
10, | |
1.5, | |
13, | |
10, | |
18, | |
56 | |
] | |
] | |
} | |
}, | |
{ | |
"name": "transport_borders", | |
"source": "streets", | |
"layer": "transport", | |
"filter": [ | |
"and", | |
["class", "==", "highway"], | |
["type", "has", ["unclassified", "tertiary", "tertiary_link", "street", "street_limited", "residential", "pedestrian", "road"]] | |
], | |
"type": "line", | |
"minzoom": 7, | |
"layout": { | |
"cap": [ | |
"input-range", | |
"zoom", | |
"step", | |
0, | |
"butt", | |
12, | |
"round" | |
], | |
"join": "bevel" | |
}, | |
"paint": { | |
"color": "rgb(218, 220, 224)", | |
"width": [ | |
"data-condition", | |
["type", "has", ["tertiary", "tertiary_link"]], | |
[ | |
"input-range", | |
"zoom", | |
"lin", | |
7, | |
1, | |
12, | |
7, | |
15, | |
19, | |
18, | |
40 | |
], | |
["or", ["type", "has", ["road", "street", "street_limited", "residential"]]], | |
[ | |
"input-range", | |
"zoom", | |
"lin", | |
10, | |
1, | |
13, | |
5.5, | |
15, | |
14, | |
18, | |
36 | |
], | |
"default", | |
3.5 | |
] | |
} | |
}, | |
{ | |
"name": "transport_primary_secondary_borders", | |
"source": "streets", | |
"layer": "transport", | |
"filter": [ | |
"and", | |
["class", "==", "highway"], | |
["type", "has", ["primary", "primary_link", "secondary", "secondary_link"]] | |
], | |
"type": "line", | |
"minzoom": 5, | |
"layout": { | |
"cap": [ | |
"input-range", | |
"zoom", | |
"step", | |
0, | |
"butt", | |
11, | |
"round" | |
], | |
"join": "bevel" | |
}, | |
"paint": { | |
"color": [ | |
"data-condition", | |
["tunnel", "==", true], | |
"#afafaf", | |
["type", "has", ["primary", "primary_link"]], | |
"#f9ca4a", | |
"default", | |
"#dadce0" | |
], | |
"width": [ | |
"data-condition", | |
["type", "has", ["primary", "primary_link"]], | |
[ | |
"input-range", | |
"zoom", | |
"expo", | |
1.5, | |
2, | |
2, | |
7, | |
2.5, | |
10, | |
4, | |
13, | |
13, | |
18, | |
40 | |
], | |
"default", | |
[ | |
"input-range", | |
"zoom", | |
"expo", | |
1.5, | |
2, | |
2, | |
7, | |
2.5, | |
10, | |
4, | |
13, | |
13, | |
18, | |
32.75 | |
] | |
] | |
} | |
}, | |
{ | |
"name": "transport_aeroway", | |
"source": "streets", | |
"layer": "transport", | |
"filter": [ | |
"and", | |
["class", "==", "aeroway"], | |
["type", "has", ["taxiway", "runway"]] | |
], | |
"type": "line", | |
"minzoom": 9, | |
"layout": { | |
"cap": "butt", | |
"join": "bevel" | |
}, | |
"paint": { | |
"color": "#c7cadc", | |
"width": [ | |
"data-condition", | |
["type", "==", "runway"], | |
[ | |
"input-range", | |
"zoom", | |
"lin", | |
9, | |
2, | |
12, | |
18 | |
], | |
"default", | |
[ | |
"input-range", | |
"zoom", | |
"expo", | |
1.7, | |
9, | |
1.5, | |
13, | |
4.5 | |
] | |
] | |
} | |
}, | |
{ | |
"name": "transport_piste_aerialway", | |
"source": "streets", | |
"layer": "transport", | |
"filter": [ | |
"or", | |
["class", "==", "piste"], | |
["class", "==", "aerialway"] | |
], | |
"type": "line", | |
"minzoom": 9, | |
"layout": { | |
"cap": [ | |
"input-range", | |
"zoom", | |
"step", | |
0, | |
"butt", | |
12, | |
"round" | |
], | |
"join": "bevel" | |
}, | |
"paint": { | |
"color": [ | |
"data-condition", | |
["piste:difficulty", "has", ["novice", "easy"]], | |
"#67b346", | |
["piste:difficulty", "==", "intermediate"], | |
"#507bee", | |
["piste:difficulty", "==", "freeride"], | |
"#ffa500", | |
["class", "==", "aerialway"], | |
"#fe0252", | |
"default", | |
"#585753" | |
], | |
"width": [ | |
"input-range", | |
"zoom", | |
"lin", | |
9, | |
1, | |
12, | |
2 | |
] | |
} | |
}, | |
{ | |
"name": "transport_low_zoom", | |
"source": "streets", | |
"layer": "transport", | |
"filter": ["or", | |
[ | |
"and", | |
["class", "==", "highway"], | |
["type", "has", ["track", "tertiary", "tertiary_link", "street", "road", "service", "unclassified", "street_limited", "residential", "pedestrian", "path"]] | |
], | |
["class", "==", "water"], | |
["class", "==", "railway"], | |
["and", ["class", "==", "man_made"], ["type", "==", "pier"]] | |
], | |
"type": "line", | |
"minzoom": 7, | |
"layout": { | |
"cap": [ | |
"input-range", | |
"zoom", | |
"step", | |
0, | |
"butt", | |
12, | |
"round" | |
], | |
"join": "bevel" | |
}, | |
"paint": { | |
"color": [ | |
"data-condition", | |
["class", "==", "water"], | |
"#6296ce", | |
["type", "==", "path"], | |
"rgb(91, 185, 116)", | |
["or", ["type", "==", "road"], ["class", "==", "unclassified"]], | |
"#f6f3ee", | |
["class", "==", "railway"], | |
"rgb(199, 202, 205)", | |
"default", | |
"rgb(255, 255, 255)" | |
], | |
"width": [ | |
"data-condition", | |
["type", "has", ["tertiary", "tertiary_link"]], | |
[ | |
"input-range", | |
"zoom", | |
"lin", | |
7, | |
1, | |
12, | |
4, | |
15, | |
15, | |
18, | |
36.75 | |
], | |
["or", ["type", "==", "road"], ["type", "==", "street"], ["type", "==", "street_limited"], ["type", "==", "residential"]], | |
[ | |
"input-range", | |
"zoom", | |
"lin", | |
10, | |
1.1, | |
13, | |
4, | |
15, | |
10, | |
18, | |
33.25 | |
], | |
["or", ["type", "==", "track"], ["class", "==", "railway"]], | |
1.5, | |
["type", "==", "path"], | |
1.5, | |
"default", | |
[ | |
"input-range", | |
"zoom", | |
"lin", | |
12, | |
2, | |
15, | |
6 | |
] | |
] | |
} | |
}, | |
{ | |
"name": "transport-primary", | |
"source": "streets", | |
"layer": "transport", | |
"filter": [ | |
"and", | |
["class", "==", "highway"], | |
["type", "has", ["primary", "primary_link", "secondary", "secondary_link"]] | |
], | |
"type": "line", | |
"minzoom": 5, | |
"layout": { | |
"cap": [ | |
"input-range", | |
"zoom", | |
"step", | |
0, | |
"butt", | |
11, | |
"round" | |
], | |
"join": "bevel" | |
}, | |
"paint": { | |
"color": [ | |
"data-condition", | |
["tunnel", "==", true], | |
"#e3e3e3", | |
["type", "has", ["primary", "primary_link"]], | |
"#fbefb2", | |
"default", | |
"#ffffff" | |
], | |
"width": [ | |
"data-condition", | |
["type", "has", ["primary", "primary_link"]], | |
[ | |
"input-range", | |
"zoom", | |
"expo", | |
1.5, | |
7, | |
1, | |
10, | |
1.5, | |
13, | |
10, | |
18, | |
36.75 | |
], | |
"default", | |
[ | |
"input-range", | |
"zoom", | |
"expo", | |
1.5, | |
7, | |
1, | |
10, | |
1.5, | |
13, | |
10, | |
18, | |
30 | |
] | |
] | |
} | |
}, | |
{ | |
"name": "motor_trunk_borders", | |
"source": "streets", | |
"layer": "transport", | |
"filter": [ | |
"and", | |
["or", ["layer", "==", null], ["layer", "<=", 0]], | |
["tunnel", "!=", true], | |
["class", "==", "highway"], | |
["type", "has", ["motorway", "motorway_link", "trunk", "trunk_link"]] | |
], | |
"type": "line", | |
"minzoom": 2, | |
"layout": { | |
"cap": [ | |
"input-range", | |
"zoom", | |
"step", | |
0, | |
"butt", | |
10, | |
"round" | |
], | |
"join": "bevel" | |
}, | |
"paint": { | |
"color": [ | |
"input-range", | |
"zoom", | |
"lin", | |
10, | |
"#f9ca4a", | |
12, | |
"#f1b743" | |
], | |
"width": [ | |
"data-condition", | |
["type", "has", ["motorway_link", "trunk_link"]], | |
[ | |
"input-range", | |
"zoom", | |
"expo", | |
1.5, | |
2, | |
1.33, | |
7, | |
1.66, | |
10, | |
2.66, | |
13, | |
8.66, | |
18, | |
40 | |
], | |
"default", | |
[ | |
"input-range", | |
"zoom", | |
"expo", | |
1.5, | |
2, | |
2, | |
7, | |
2.5, | |
10, | |
4, | |
13, | |
13, | |
18, | |
60 | |
] | |
] | |
} | |
}, | |
{ | |
"name": "motor_trunk", | |
"source": "streets", | |
"layer": "transport", | |
"filter": [ | |
"and", | |
["or", ["layer", "==", null], ["layer", "<=", 0]], | |
["tunnel", "!=", true], | |
["class", "==", "highway"], | |
["type", "has", ["motorway", "motorway_link", "trunk", "trunk_link"]] | |
], | |
"type": "line", | |
"minzoom": 5, | |
"layout": { | |
"cap": [ | |
"input-range", | |
"zoom", | |
"step", | |
0, | |
"butt", | |
10, | |
"round" | |
], | |
"join": "bevel" | |
}, | |
"paint": { | |
"color": [ | |
"input-range", | |
"zoom", | |
"lin", | |
2, | |
"#f9ca4a", | |
7, | |
"#fde293" | |
], | |
"width": [ | |
"data-condition", | |
["type", "has", ["motorway_link", "trunk_link"]], | |
[ | |
"input-range", | |
"zoom", | |
"expo", | |
1.5, | |
2, | |
0.66, | |
7, | |
0.833, | |
10, | |
1, | |
13, | |
6.66, | |
18, | |
36.75 | |
], | |
"default", | |
[ | |
"input-range", | |
"zoom", | |
"expo", | |
1.5, | |
2, | |
1, | |
7, | |
1.25, | |
10, | |
1.5, | |
13, | |
10, | |
18, | |
56 | |
] | |
] | |
} | |
}, | |
{ | |
"name": "motor_trunk_borders_1", | |
"source": "streets", | |
"layer": "transport", | |
"filter": [ | |
"and", | |
["layer", "==", 1], | |
["tunnel", "!=", true], | |
["class", "==", "highway"], | |
["type", "has", ["motorway", "motorway_link", "trunk", "trunk_link"]] | |
], | |
"type": "line", | |
"minzoom": 2, | |
"layout": { | |
"cap": "butt", | |
"join": "bevel" | |
}, | |
"paint": { | |
"color": [ | |
"input-range", | |
"zoom", | |
"lin", | |
10, | |
"#f9ca4a", | |
12, | |
"#f1b743" | |
], | |
"width": [ | |
"data-condition", | |
["type", "has", ["motorway_link", "trunk_link"]], | |
[ | |
"input-range", | |
"zoom", | |
"expo", | |
1.5, | |
2, | |
1.33, | |
7, | |
1.66, | |
10, | |
2.66, | |
13, | |
8.66, | |
18, | |
40 | |
], | |
"default", | |
[ | |
"input-range", | |
"zoom", | |
"expo", | |
1.5, | |
2, | |
2, | |
7, | |
2.5, | |
10, | |
4, | |
13, | |
13, | |
18, | |
60 | |
] | |
] | |
} | |
}, | |
{ | |
"name": "motor_trunk_1", | |
"source": "streets", | |
"layer": "transport", | |
"filter": [ | |
"and", | |
["layer", "==", 1], | |
["tunnel", "!=", true], | |
["class", "==", "highway"], | |
["type", "has", ["motorway", "motorway_link", "trunk", "trunk_link"]] | |
], | |
"type": "line", | |
"minzoom": 4, | |
"layout": { | |
"cap": [ | |
"input-range", | |
"zoom", | |
"step", | |
0, | |
"butt", | |
10, | |
"round" | |
], | |
"join": "bevel" | |
}, | |
"paint": { | |
"color": [ | |
"input-range", | |
"zoom", | |
"lin", | |
2, | |
"#f9ca4a", | |
7, | |
"#fde293" | |
], | |
"width": [ | |
"data-condition", | |
["type", "has", ["motorway_link", "trunk_link"]], | |
[ | |
"input-range", | |
"zoom", | |
"expo", | |
1.5, | |
2, | |
0.66, | |
7, | |
0.833, | |
10, | |
1, | |
13, | |
6.66, | |
18, | |
36.75 | |
], | |
"default", | |
[ | |
"input-range", | |
"zoom", | |
"expo", | |
1.5, | |
2, | |
1, | |
7, | |
1.25, | |
10, | |
1.5, | |
13, | |
10, | |
18, | |
56 | |
] | |
] | |
} | |
}, | |
{ | |
"name": "motor_trunk_borders_2", | |
"source": "streets", | |
"layer": "transport", | |
"filter": [ | |
"and", | |
["layer", "==", 2], | |
["tunnel", "!=", true], | |
["class", "==", "highway"], | |
["type", "has", ["motorway", "motorway_link", "trunk", "trunk_link"]] | |
], | |
"type": "line", | |
"minzoom": 2, | |
"layout": { | |
"cap": "butt", | |
"join": "bevel" | |
}, | |
"paint": { | |
"color": [ | |
"input-range", | |
"zoom", | |
"lin", | |
10, | |
"#f9ca4a", | |
12, | |
"#f1b743" | |
], | |
"width": [ | |
"data-condition", | |
["type", "has", ["motorway_link", "trunk_link"]], | |
[ | |
"input-range", | |
"zoom", | |
"expo", | |
1.5, | |
2, | |
1.33, | |
7, | |
1.66, | |
10, | |
2.66, | |
13, | |
8.66, | |
18, | |
40 | |
], | |
"default", | |
[ | |
"input-range", | |
"zoom", | |
"expo", | |
1.5, | |
2, | |
2, | |
7, | |
2.5, | |
10, | |
4, | |
13, | |
13, | |
18, | |
60 | |
] | |
] | |
} | |
}, | |
{ | |
"name": "motor_trunk_2", | |
"source": "streets", | |
"layer": "transport", | |
"filter": [ | |
"and", | |
["layer", "==", 2], | |
["tunnel", "!=", true], | |
["class", "==", "highway"], | |
["type", "has", ["motorway", "motorway_link", "trunk", "trunk_link"]] | |
], | |
"type": "line", | |
"minzoom": 4, | |
"layout": { | |
"cap": [ | |
"input-range", | |
"zoom", | |
"step", | |
0, | |
"butt", | |
10, | |
"round" | |
], | |
"join": "bevel" | |
}, | |
"paint": { | |
"color": [ | |
"input-range", | |
"zoom", | |
"lin", | |
2, | |
"#f9ca4a", | |
7, | |
"#fde293" | |
], | |
"width": [ | |
"data-condition", | |
["type", "has", ["motorway_link", "trunk_link"]], | |
[ | |
"input-range", | |
"zoom", | |
"expo", | |
1.5, | |
2, | |
0.66, | |
7, | |
0.833, | |
10, | |
1, | |
13, | |
6.66, | |
18, | |
36.75 | |
], | |
"default", | |
[ | |
"input-range", | |
"zoom", | |
"expo", | |
1.5, | |
2, | |
1, | |
7, | |
1.25, | |
10, | |
1.5, | |
13, | |
10, | |
18, | |
56 | |
] | |
] | |
} | |
}, | |
{ | |
"name": "motor_trunk_borders_3", | |
"source": "streets", | |
"layer": "transport", | |
"filter": [ | |
"and", | |
["layer", ">=", 3], | |
["tunnel", "!=", true], | |
["class", "==", "highway"], | |
["type", "has", ["motorway", "motorway_link", "trunk", "trunk_link"]] | |
], | |
"type": "line", | |
"minzoom": 2, | |
"layout": { | |
"cap": "butt", | |
"join": "bevel" | |
}, | |
"paint": { | |
"color": [ | |
"input-range", | |
"zoom", | |
"lin", | |
10, | |
"#f9ca4a", | |
12, | |
"#f1b743" | |
], | |
"width": [ | |
"data-condition", | |
["type", "has", ["motorway_link", "trunk_link"]], | |
[ | |
"input-range", | |
"zoom", | |
"expo", | |
1.5, | |
2, | |
1.33, | |
7, | |
1.66, | |
10, | |
2.66, | |
13, | |
8.66, | |
18, | |
40 | |
], | |
"default", | |
[ | |
"input-range", | |
"zoom", | |
"expo", | |
1.5, | |
2, | |
2, | |
7, | |
2.5, | |
10, | |
4, | |
13, | |
13, | |
18, | |
60 | |
] | |
] | |
} | |
}, | |
{ | |
"name": "motor_trunk_3", | |
"source": "streets", | |
"layer": "transport", | |
"filter": [ | |
"and", | |
["layer", ">=", 3], | |
["tunnel", "!=", true], | |
["class", "==", "highway"], | |
["type", "has", ["motorway", "motorway_link", "trunk", "trunk_link"]] | |
], | |
"type": "line", | |
"minzoom": 4, | |
"layout": { | |
"cap": [ | |
"input-range", | |
"zoom", | |
"step", | |
0, | |
"butt", | |
10, | |
"round" | |
], | |
"join": "bevel" | |
}, | |
"paint": { | |
"color": [ | |
"input-range", | |
"zoom", | |
"lin", | |
2, | |
"#f9ca4a", | |
7, | |
"#fde293" | |
], | |
"width": [ | |
"data-condition", | |
["type", "has", ["motorway_link", "trunk_link"]], | |
[ | |
"input-range", | |
"zoom", | |
"expo", | |
1.5, | |
2, | |
0.66, | |
7, | |
0.833, | |
10, | |
1, | |
13, | |
6.66, | |
18, | |
36.75 | |
], | |
"default", | |
[ | |
"input-range", | |
"zoom", | |
"expo", | |
1.5, | |
2, | |
1, | |
7, | |
1.25, | |
10, | |
1.5, | |
13, | |
10, | |
18, | |
56 | |
] | |
] | |
} | |
}, | |
{ | |
"id": "boundaries", | |
"source": "streets", | |
"layer": "boundary", | |
"filter": ["and", ["adminLevel", "has", [2, 4]], ["maritime", "==", false]], | |
"type": "line", | |
"minzoom": 0, | |
"layout": { | |
"cap": "butt", | |
"join": "bevel" | |
}, | |
"paint": { | |
"color": [ | |
"data-condition", | |
["adminLevel", "==", 2], | |
"rgb(120, 120, 120)", | |
"default", | |
"rgb(160, 160, 160)" | |
], | |
"width": [ | |
"data-condition", | |
["adminLevel", "==", 4], | |
1.25, | |
"default", | |
[ | |
"input-range", | |
"zoom", | |
"lin", | |
1.25, | |
1, | |
2, | |
1.75 | |
] | |
] | |
} | |
}, | |
{ | |
"name": "equator", | |
"source": "streets", | |
"layer": "equator", | |
"type": "line", | |
"minzoom": 0, | |
"maxzoom": 10, | |
"layout": { | |
"cap": "butt", | |
"join": "bevel" | |
}, | |
"paint": { | |
"color": "rgba(125, 102, 97, 0.8)", | |
"width": 1.5 | |
} | |
}, | |
{ | |
"name": "buildings", | |
"source": "streets", | |
"layer": "buildings", | |
"type": "fill", | |
"opaque": true, | |
"layout": {}, | |
"paint": { | |
"color": [ | |
"data-condition", | |
["class", "has", ["aeroway", "office", "hotel", "hospital", "shop", "retail", "industrial", "school", "commercial", "public", "warehouse", "service", "stadium"]], | |
"#fdf9e9", | |
["class", "==", "police"], | |
"#9bc1ef", | |
["class", "==", "fire_station"], | |
"#fba69e", | |
"default", | |
"#f2f3f4" | |
] | |
} | |
}, | |
{ | |
"name": "buildings_highlight", | |
"source": "streets", | |
"layer": "buildings", | |
"type": "line", | |
"layout": { | |
"cap": "butt", | |
"join": "bevel" | |
}, | |
"paint": { | |
"color": [ | |
"data-condition", | |
["class", "has", ["aeroway", "office", "hotel", "hospital", "shop", "retail", "industrial", "school", "commercial", "public", "warehouse", "service", "stadium"]], | |
"#f5e0a4", | |
["class", "==", "police"], | |
"#648dbf", | |
["class", "==", "fire_station"], | |
"#d07870", | |
"default", | |
"#d8dade" | |
], | |
"width": 1.5 | |
} | |
}, | |
{ | |
"name": "info-fill", | |
"source": "_info", | |
"type": "fill", | |
"invert": true, | |
"minzoom": 0, | |
"paint": { | |
"color": "rgba(64, 64, 64, 0.15)" | |
} | |
}, | |
{ | |
"name": "info-border", | |
"source": "_info", | |
"type": "line", | |
"minzoom": 0, | |
"layout": { | |
"cap": "butt", | |
"join": "bevel" | |
}, | |
"paint": { | |
"color": "rgba(161, 106, 179, 0.85)", | |
"width": [ | |
"input-range", | |
"zoom", | |
"lin", | |
0, | |
2, | |
3, | |
2.5 | |
] | |
} | |
}, | |
{ | |
"name": "shade", | |
"source": "mask", | |
"type": "shade", | |
"maxzoom": 2 | |
}, | |
{ | |
"name": "address", | |
"source": "streets", | |
"layer": "addr", | |
"type": "glyph", | |
"minzoom": 16, | |
"layout": { | |
"text-family": "roboto-regular", | |
"text-field": "?housenumber", | |
"text-anchor": "center", | |
"text-line-height": 0.02, | |
"text-offset": [0, 0], | |
"text-padding": [4, 2] | |
}, | |
"paint": { | |
"text-size": 14, | |
"text-fill": "rgb(100, 100, 100)", | |
"text-stroke": "rgba(255, 255, 255, 0.65)", | |
"text-stroke-width": 0.7 | |
} | |
}, | |
{ | |
"name": "country_state", | |
"source": "streets", | |
"filter": [ | |
"or", | |
["and", ["class", "==", "continent"], ["?name", "==", "Antarctica"]], | |
["class", "has", ["country", "state", "province", "territory"]] | |
], | |
"layer": "place", | |
"type": "glyph", | |
"maxzoom": 12, | |
"interactive": true, | |
"cursor": "pointer", | |
"layout": { | |
"text-family": "roboto-medium", | |
"text-field": [ | |
"data-condition", | |
["class", "==", "continent"], | |
"?!P!Uname_XX", | |
"default", | |
[ | |
"input-range", | |
"zoom", | |
"step", | |
0, | |
"?abbr,?name", | |
3, | |
[ | |
"data-condition", | |
["and", ["?!Pname_XX", "!=", ""], ["?!Pname_XX", "has", "?name"]], | |
"?name", | |
"default", | |
["?name", "\n", "?!Pname_XX"] | |
] | |
] | |
], | |
"text-anchor": "center", | |
"text-line-height": 0.02, | |
"text-offset": [0, 0], | |
"text-padding": [4, 2] | |
}, | |
"paint": { | |
"text-size": [ | |
"data-condition", | |
["class", "==", "country"], | |
[ | |
"input-range", | |
"zoom", | |
"expo", | |
1.5, | |
0, | |
14, | |
4, | |
28 | |
], | |
["class", "has", ["state", "province", "territory"]], | |
[ | |
"input-range", | |
"zoom", | |
"lin", | |
0, | |
10, | |
6, | |
20 | |
], | |
"default", | |
15.3 | |
], | |
"text-fill": [ | |
"data-condition", | |
["class", "==", "country"], | |
"rgb(42, 42, 42)", | |
["class", "==", "continent"], | |
"rgb(65, 65, 65)", | |
["class", "has", ["state", "province", "territory"]], | |
"rgb(90, 90, 90)", | |
"default", | |
"rgba(0, 0, 0, 0)" | |
], | |
"text-stroke": "rgba(255, 255, 255, 0.65)", | |
"text-stroke-width": [ | |
"data-condition", | |
["class", "has", ["state", "province", "territory"]], | |
0.7, | |
["class", "==", "continent"], | |
0.5, | |
"default", | |
0 | |
] | |
} | |
}, | |
{ | |
"name": "places", | |
"source": "streets", | |
"minzoom": 4, | |
"maxzoom": 13, | |
"filter": ["class", "has", ["city", "town", "village", "hamlet", "locality", "neighbourhood", "island", "suburb"]], | |
"layer": "place", | |
"type": "glyph", | |
"layout": { | |
"text-family": [ | |
"data-condition", | |
["class", "has", ["town", "hamlet"]], | |
"roboto-regular", | |
"default", | |
"roboto-medium" | |
], | |
"text-field": [ | |
"data-condition", | |
["class", "has", ["hamlet", "village", "neighbourhood", "suburb", "island"]], | |
[ | |
"data-condition", | |
["and", ["?!Pname_XX", "!=", ""], ["?!Pname_XX", "has", "?name"]], | |
"?!Uname", | |
"default", | |
["?!Uname", "\n", "?!P!Uname_XX"] | |
], | |
"default", | |
[ | |
"data-condition", | |
["and", ["?!Pname_XX", "!=", ""], ["?!Pname_XX", "has", "?name"]], | |
"?name", | |
"default", | |
["?name", "\n", "?!Pname_XX"] | |
] | |
], | |
"text-anchor": "center", | |
"text-offset": [0, 0], | |
"text-padding": [1, 1] | |
}, | |
"paint": { | |
"text-size": [ | |
"data-condition", | |
["class", "==", "city"], | |
[ | |
"input-range", | |
"zoom", | |
"lin", | |
5, | |
12, | |
9, | |
17, | |
13, | |
32.3 | |
], | |
["class", "==", "town"], | |
[ | |
"input-range", | |
"zoom", | |
"lin", | |
8, | |
12, | |
10, | |
15.3, | |
13, | |
21.25 | |
], | |
["class", "has", ["neighbourhood", "suburb"]], | |
[ | |
"input-range", | |
"zoom", | |
"lin", | |
10, | |
13.6, | |
15, | |
15.3 | |
], | |
["class", "has", ["hamlet", "village", "locality"]], | |
[ | |
"input-range", | |
"zoom", | |
"lin", | |
10.5, | |
12, | |
12, | |
15.3 | |
], | |
"default", | |
14.45 | |
], | |
"text-fill": [ | |
"data-condition", | |
["class", "has", ["village", "island"]], | |
"rgb(98, 114, 138)", | |
["class", "has", ["hamlet", "neighbourhood", "locality"]], | |
"#7d8ca2", | |
"default", | |
[ | |
"input-range", | |
"zoom", | |
"lin", | |
9, | |
"rgb(75, 75, 75)", | |
12, | |
"rgb(100, 100, 100)" | |
] | |
], | |
"text-stroke": "rgba(255, 255, 255, 0.75)", | |
"text-stroke-width": 0.65 | |
} | |
}, | |
{ | |
"name": "water_label", | |
"source": "streets", | |
"filter": ["class", "==", "water"], | |
"layer": "poi", | |
"type": "glyph", | |
"layout": { | |
"text-family": "roboto-medium", | |
"text-field": [ | |
"data-condition", | |
["and", ["name_en", "!=", ""], ["name_en", "has", "?name"]], | |
"?name", | |
"default", | |
["?name", "\n", "?name_en"] | |
], | |
"text-anchor": "center", | |
"text-offset": [0, 0], | |
"text-padding": [1, 1] | |
}, | |
"paint": { | |
"text-size": [ | |
"data-condition", | |
["type", "==", "ocean"], | |
[ | |
"input-range", | |
"zoom", | |
"expo", | |
1.5, | |
0, | |
14, | |
3, | |
22 | |
], | |
["type", "==", "sea"], | |
[ | |
"input-range", | |
"zoom", | |
"expo", | |
1.5, | |
0, | |
10, | |
4, | |
16, | |
7, | |
22 | |
], | |
"default", | |
13.6 | |
], | |
"text-fill": "#00669E", | |
"text-stroke": "#00669E", | |
"text-stroke-width": 0 | |
} | |
}, | |
{ | |
"name": "poi_labels", | |
"filter": ["class", "!=", "addr"], | |
"source": "streets", | |
"layer": "poi", | |
"type": "glyph", | |
"layout": { | |
"text-family": [ | |
"data-condition", | |
["class", "==", "aboriginal_lands"], | |
"roboto-medium", | |
"default", | |
"roboto-regular" | |
], | |
"text-field": [ | |
"data-condition", | |
["class", "==", "aboriginal_lands"], | |
"?!Uname", | |
"default", | |
"?name" | |
], | |
"text-anchor": "top", | |
"text-offset": [0, 0], | |
"text-padding": [1, 1], | |
"icon-family": "street-icons", | |
"icon-field": "?icon", | |
"icon-anchor": "bottom", | |
"icon-offset": [3, -4], | |
"icon-padding": [0, 0] | |
}, | |
"paint": { | |
"text-size": [ | |
"data-condition", | |
["class", "==", "aboriginal_lands"], | |
12.75, | |
"default", | |
14.45 | |
], | |
"text-fill": [ | |
"data-condition", | |
["class", "has", ["natural", "leisure", "landuse", "outdoor"]], | |
"#198038", | |
["class", "==", "aboriginal_lands"], | |
"#868585", | |
["class", "has", ["hospital", "medical"]], | |
"#d93026", | |
["class", "==", "police"], | |
"#3878c7", | |
["class", "has", ["fire_station", "ranger_station"]], | |
"#e94435", | |
["class", "has", ["historic", "tourism"]], | |
"#0b8591", | |
["class", "has", ["sport", "fuel"]], | |
"#5c6bc1", | |
["class", "has", ["bus_station", "railway"]], | |
"#1a73e7", | |
["class", "has", ["aeroway", "aerialway"]], | |
"#139cf1", | |
["class", "==", "amenity"], | |
"#1a73e7", | |
["class", "==", "water"], | |
"#00669E", | |
["class", "==", "food_drink"], | |
"#d56d02", | |
["class", "==", "rest"], | |
"#ef6292", | |
"default", | |
"#556e7a" | |
], | |
"text-stroke": "rgba(255, 255, 255, 0.75)", | |
"text-stroke-width": [ | |
"data-condition", | |
["class", "==", "water"], | |
0, | |
"default", | |
0.5 | |
] | |
} | |
}, | |
{ | |
"name": "markers", | |
"source": "_markers", | |
"type": "glyph", | |
"overdraw": true, | |
"layout": { | |
"icon-family": "street-icons", | |
"icon-field": "marker", | |
"icon-anchor": "bottom", | |
"icon-offset": [3, -4], | |
"icon-padding": [0, 0] | |
}, | |
"paint": { | |
"icon-size": 36 | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment