protomaps-themes-base
Version:
Protomaps basemap themes for MapLibre GL JS
2,755 lines (2,754 loc) • 250 kB
JSON
{
"version": 8,
"sources": {
"protomaps": {
"type": "vector",
"attribution": "<a href=\"https://github.com/protomaps/basemaps\">Protomaps</a> © <a href=\"https://openstreetmap.org\">OpenStreetMap</a>",
"url": "https://example.com/tiles.json"
}
},
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": "#34373d"
}
},
{
"id": "earth",
"type": "fill",
"filter": [
"==",
"$type",
"Polygon"
],
"source": "protomaps",
"source-layer": "earth",
"paint": {
"fill-color": "#1f1f1f"
}
},
{
"id": "landcover",
"type": "fill",
"source": "protomaps",
"source-layer": "landcover",
"paint": {
"fill-color": [
"match",
[
"get",
"kind"
],
"grassland",
"rgba(30, 41, 31, 1)",
"barren",
"rgba(38, 38, 36, 1)",
"urban_area",
"rgba(28, 28, 28, 1)",
"farmland",
"rgba(31, 36, 32, 1)",
"glacier",
"rgba(43, 43, 43, 1)",
"scrub",
"rgba(34, 36, 30, 1)",
"rgba(28, 41, 37, 1)"
],
"fill-opacity": [
"interpolate",
[
"linear"
],
[
"zoom"
],
5,
1,
7,
0
]
}
},
{
"id": "landuse_park",
"type": "fill",
"source": "protomaps",
"source-layer": "landuse",
"filter": [
"in",
"kind",
"national_park",
"park",
"cemetery",
"protected_area",
"nature_reserve",
"forest",
"golf_course",
"wood",
"nature_reserve",
"forest",
"scrub",
"grassland",
"grass",
"military",
"naval_base",
"airfield"
],
"paint": {
"fill-opacity": [
"interpolate",
[
"linear"
],
[
"zoom"
],
6,
0,
11,
1
],
"fill-color": [
"case",
[
"in",
[
"get",
"kind"
],
[
"literal",
[
"national_park",
"park",
"cemetery",
"protected_area",
"nature_reserve",
"forest",
"golf_course"
]
]
],
"#192a24",
[
"in",
[
"get",
"kind"
],
[
"literal",
[
"wood",
"nature_reserve",
"forest"
]
]
],
"#202121",
[
"in",
[
"get",
"kind"
],
[
"literal",
[
"scrub",
"grassland",
"grass"
]
]
],
"#222323",
[
"in",
[
"get",
"kind"
],
[
"literal",
[
"glacier"
]
]
],
"#1c1c1c",
[
"in",
[
"get",
"kind"
],
[
"literal",
[
"sand"
]
]
],
"#212123",
[
"in",
[
"get",
"kind"
],
[
"literal",
[
"military",
"naval_base",
"airfield"
]
]
],
"#222323",
"#1f1f1f"
]
}
},
{
"id": "landuse_urban_green",
"type": "fill",
"source": "protomaps",
"source-layer": "landuse",
"filter": [
"in",
"kind",
"allotments",
"village_green",
"playground"
],
"paint": {
"fill-color": "#192a24",
"fill-opacity": 0.7
}
},
{
"id": "landuse_hospital",
"type": "fill",
"source": "protomaps",
"source-layer": "landuse",
"filter": [
"==",
"kind",
"hospital"
],
"paint": {
"fill-color": "#252424"
}
},
{
"id": "landuse_industrial",
"type": "fill",
"source": "protomaps",
"source-layer": "landuse",
"filter": [
"==",
"kind",
"industrial"
],
"paint": {
"fill-color": "#222222"
}
},
{
"id": "landuse_school",
"type": "fill",
"source": "protomaps",
"source-layer": "landuse",
"filter": [
"in",
"kind",
"school",
"university",
"college"
],
"paint": {
"fill-color": "#262323"
}
},
{
"id": "landuse_beach",
"type": "fill",
"source": "protomaps",
"source-layer": "landuse",
"filter": [
"in",
"kind",
"beach"
],
"paint": {
"fill-color": "#28282a"
}
},
{
"id": "landuse_zoo",
"type": "fill",
"source": "protomaps",
"source-layer": "landuse",
"filter": [
"in",
"kind",
"zoo"
],
"paint": {
"fill-color": "#222323"
}
},
{
"id": "landuse_aerodrome",
"type": "fill",
"source": "protomaps",
"source-layer": "landuse",
"filter": [
"in",
"kind",
"aerodrome"
],
"paint": {
"fill-color": "#1e1e1e"
}
},
{
"id": "roads_runway",
"type": "line",
"source": "protomaps",
"source-layer": "roads",
"filter": [
"==",
"kind_detail",
"runway"
],
"paint": {
"line-color": "#333333",
"line-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
10,
0,
12,
4,
18,
30
]
}
},
{
"id": "roads_taxiway",
"type": "line",
"source": "protomaps",
"source-layer": "roads",
"minzoom": 13,
"filter": [
"==",
"kind_detail",
"taxiway"
],
"paint": {
"line-color": "#333333",
"line-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
13,
0,
13.5,
1,
15,
6
]
}
},
{
"id": "landuse_runway",
"type": "fill",
"source": "protomaps",
"source-layer": "landuse",
"filter": [
"any",
[
"in",
"kind",
"runway",
"taxiway"
]
],
"paint": {
"fill-color": "#333333"
}
},
{
"id": "water",
"type": "fill",
"filter": [
"==",
"$type",
"Polygon"
],
"source": "protomaps",
"source-layer": "water",
"paint": {
"fill-color": "#31353f"
}
},
{
"id": "water_stream",
"type": "line",
"source": "protomaps",
"source-layer": "water",
"minzoom": 14,
"filter": [
"in",
"kind",
"stream"
],
"paint": {
"line-color": "#31353f",
"line-width": 0.5
}
},
{
"id": "water_river",
"type": "line",
"source": "protomaps",
"source-layer": "water",
"minzoom": 9,
"filter": [
"in",
"kind",
"river"
],
"paint": {
"line-color": "#31353f",
"line-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
9,
0,
9.5,
1,
18,
12
]
}
},
{
"id": "landuse_pedestrian",
"type": "fill",
"source": "protomaps",
"source-layer": "landuse",
"filter": [
"==",
"kind",
"pedestrian"
],
"paint": {
"fill-color": "#1e1e1e"
}
},
{
"id": "landuse_pier",
"type": "fill",
"source": "protomaps",
"source-layer": "landuse",
"filter": [
"==",
"kind",
"pier"
],
"paint": {
"fill-color": "#333333"
}
},
{
"id": "roads_tunnels_other_casing",
"type": "line",
"source": "protomaps",
"source-layer": "roads",
"filter": [
"all",
[
"has",
"is_tunnel"
],
[
"in",
"kind",
"other",
"path"
]
],
"paint": {
"line-color": "#141414",
"line-gap-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
14,
0,
20,
7
]
}
},
{
"id": "roads_tunnels_minor_casing",
"type": "line",
"source": "protomaps",
"source-layer": "roads",
"filter": [
"all",
[
"has",
"is_tunnel"
],
[
"==",
"kind",
"minor_road"
]
],
"paint": {
"line-color": "#141414",
"line-dasharray": [
3,
2
],
"line-gap-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
11,
0,
12.5,
0.5,
15,
2,
18,
11
],
"line-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
12,
0,
12.5,
1
]
}
},
{
"id": "roads_tunnels_link_casing",
"type": "line",
"source": "protomaps",
"source-layer": "roads",
"filter": [
"all",
[
"has",
"is_tunnel"
],
[
"has",
"is_link"
]
],
"paint": {
"line-color": "#141414",
"line-dasharray": [
3,
2
],
"line-gap-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
13,
0,
13.5,
1,
18,
11
],
"line-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
12,
0,
12.5,
1
]
}
},
{
"id": "roads_tunnels_major_casing",
"type": "line",
"source": "protomaps",
"source-layer": "roads",
"filter": [
"all",
[
"!has",
"is_tunnel"
],
[
"!has",
"is_bridge"
],
[
"==",
"kind",
"major_road"
]
],
"paint": {
"line-color": "#141414",
"line-dasharray": [
3,
2
],
"line-gap-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
7,
0,
7.5,
0.5,
18,
13
],
"line-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
9,
0,
9.5,
1
]
}
},
{
"id": "roads_tunnels_highway_casing",
"type": "line",
"source": "protomaps",
"source-layer": "roads",
"filter": [
"all",
[
"!has",
"is_tunnel"
],
[
"!has",
"is_bridge"
],
[
"==",
"kind",
"highway"
],
[
"!has",
"is_link"
]
],
"paint": {
"line-color": "#141414",
"line-dasharray": [
6,
0.5
],
"line-gap-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
3,
0,
3.5,
0.5,
18,
15
],
"line-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
7,
0,
7.5,
1,
20,
15
]
}
},
{
"id": "roads_tunnels_other",
"type": "line",
"source": "protomaps",
"source-layer": "roads",
"filter": [
"all",
[
"has",
"is_tunnel"
],
[
"in",
"kind",
"other",
"path"
]
],
"paint": {
"line-color": "#292929",
"line-dasharray": [
4.5,
0.5
],
"line-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
14,
0,
20,
7
]
}
},
{
"id": "roads_tunnels_minor",
"type": "line",
"source": "protomaps",
"source-layer": "roads",
"filter": [
"all",
[
"has",
"is_tunnel"
],
[
"==",
"kind",
"minor_road"
]
],
"paint": {
"line-color": "#292929",
"line-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
11,
0,
12.5,
0.5,
15,
2,
18,
11
]
}
},
{
"id": "roads_tunnels_link",
"type": "line",
"source": "protomaps",
"source-layer": "roads",
"filter": [
"all",
[
"has",
"is_tunnel"
],
[
"has",
"is_link"
]
],
"paint": {
"line-color": "#292929",
"line-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
13,
0,
13.5,
1,
18,
11
]
}
},
{
"id": "roads_tunnels_major",
"type": "line",
"source": "protomaps",
"source-layer": "roads",
"filter": [
"all",
[
"has",
"is_tunnel"
],
[
"==",
"kind",
"major_road"
]
],
"paint": {
"line-color": "#292929",
"line-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
6,
0,
12,
1.6,
15,
3,
18,
13
]
}
},
{
"id": "roads_tunnels_highway",
"type": "line",
"source": "protomaps",
"source-layer": "roads",
"filter": [
"all",
[
"has",
"is_tunnel"
],
[
"==",
[
"get",
"kind"
],
"highway"
],
[
"!",
[
"has",
"is_link"
]
]
],
"paint": {
"line-color": "#292929",
"line-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
3,
0,
6,
1.1,
12,
1.6,
15,
5,
18,
15
]
}
},
{
"id": "buildings",
"type": "fill",
"source": "protomaps",
"source-layer": "buildings",
"filter": [
"in",
"kind",
"building",
"building_part"
],
"paint": {
"fill-color": "#111111",
"fill-opacity": 0.5
}
},
{
"id": "roads_pier",
"type": "line",
"source": "protomaps",
"source-layer": "roads",
"filter": [
"==",
"kind_detail",
"pier"
],
"paint": {
"line-color": "#333333",
"line-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
12,
0,
12.5,
0.5,
20,
16
]
}
},
{
"id": "roads_minor_service_casing",
"type": "line",
"source": "protomaps",
"source-layer": "roads",
"minzoom": 13,
"filter": [
"all",
[
"!has",
"is_tunnel"
],
[
"!has",
"is_bridge"
],
[
"==",
"kind",
"minor_road"
],
[
"==",
"kind_detail",
"service"
]
],
"paint": {
"line-color": "#1f1f1f",
"line-gap-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
13,
0,
18,
8
],
"line-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
13,
0,
13.5,
0.8
]
}
},
{
"id": "roads_minor_casing",
"type": "line",
"source": "protomaps",
"source-layer": "roads",
"filter": [
"all",
[
"!has",
"is_tunnel"
],
[
"!has",
"is_bridge"
],
[
"==",
"kind",
"minor_road"
],
[
"!=",
"kind_detail",
"service"
]
],
"paint": {
"line-color": "#1f1f1f",
"line-gap-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
11,
0,
12.5,
0.5,
15,
2,
18,
11
],
"line-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
12,
0,
12.5,
1
]
}
},
{
"id": "roads_link_casing",
"type": "line",
"source": "protomaps",
"source-layer": "roads",
"minzoom": 13,
"filter": [
"has",
"is_link"
],
"paint": {
"line-color": "#1f1f1f",
"line-gap-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
13,
0,
13.5,
1,
18,
11
],
"line-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
13,
0,
13.5,
1.5
]
}
},
{
"id": "roads_major_casing_late",
"type": "line",
"source": "protomaps",
"source-layer": "roads",
"minzoom": 12,
"filter": [
"all",
[
"!has",
"is_tunnel"
],
[
"!has",
"is_bridge"
],
[
"==",
"kind",
"major_road"
]
],
"paint": {
"line-color": "#1f1f1f",
"line-gap-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
6,
0,
12,
1.6,
15,
3,
18,
13
],
"line-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
9,
0,
9.5,
1
]
}
},
{
"id": "roads_highway_casing_late",
"type": "line",
"source": "protomaps",
"source-layer": "roads",
"minzoom": 12,
"filter": [
"all",
[
"!has",
"is_tunnel"
],
[
"!has",
"is_bridge"
],
[
"==",
"kind",
"highway"
],
[
"!has",
"is_link"
]
],
"paint": {
"line-color": "#1f1f1f",
"line-gap-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
3,
0,
3.5,
0.5,
18,
15
],
"line-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
7,
0,
7.5,
1,
20,
15
]
}
},
{
"id": "roads_other",
"type": "line",
"source": "protomaps",
"source-layer": "roads",
"filter": [
"all",
[
"!has",
"is_tunnel"
],
[
"!has",
"is_bridge"
],
[
"in",
"kind",
"other",
"path"
],
[
"!=",
"kind_detail",
"pier"
]
],
"paint": {
"line-color": "#333333",
"line-dasharray": [
3,
1
],
"line-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
14,
0,
20,
7
]
}
},
{
"id": "roads_link",
"type": "line",
"source": "protomaps",
"source-layer": "roads",
"filter": [
"has",
"is_link"
],
"paint": {
"line-color": "#3d3d3d",
"line-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
13,
0,
13.5,
1,
18,
11
]
}
},
{
"id": "roads_minor_service",
"type": "line",
"source": "protomaps",
"source-layer": "roads",
"filter": [
"all",
[
"!has",
"is_tunnel"
],
[
"!has",
"is_bridge"
],
[
"==",
"kind",
"minor_road"
],
[
"==",
"kind_detail",
"service"
]
],
"paint": {
"line-color": "#333333",
"line-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
13,
0,
18,
8
]
}
},
{
"id": "roads_minor",
"type": "line",
"source": "protomaps",
"source-layer": "roads",
"filter": [
"all",
[
"!has",
"is_tunnel"
],
[
"!has",
"is_bridge"
],
[
"==",
"kind",
"minor_road"
],
[
"!=",
"kind_detail",
"service"
]
],
"paint": {
"line-color": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
11,
"#3d3d3d",
16,
"#333333"
],
"line-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
11,
0,
12.5,
0.5,
15,
2,
18,
11
]
}
},
{
"id": "roads_major_casing_early",
"type": "line",
"source": "protomaps",
"source-layer": "roads",
"maxzoom": 12,
"filter": [
"all",
[
"!has",
"is_tunnel"
],
[
"!has",
"is_bridge"
],
[
"==",
"kind",
"major_road"
]
],
"paint": {
"line-color": "#1f1f1f",
"line-gap-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
7,
0,
7.5,
0.5,
18,
13
],
"line-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
9,
0,
9.5,
1
]
}
},
{
"id": "roads_major",
"type": "line",
"source": "protomaps",
"source-layer": "roads",
"filter": [
"all",
[
"!has",
"is_tunnel"
],
[
"!has",
"is_bridge"
],
[
"==",
"kind",
"major_road"
]
],
"paint": {
"line-color": "#3d3d3d",
"line-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
6,
0,
12,
1.6,
15,
3,
18,
13
]
}
},
{
"id": "roads_highway_casing_early",
"type": "line",
"source": "protomaps",
"source-layer": "roads",
"maxzoom": 12,
"filter": [
"all",
[
"!has",
"is_tunnel"
],
[
"!has",
"is_bridge"
],
[
"==",
"kind",
"highway"
],
[
"!has",
"is_link"
]
],
"paint": {
"line-color": "#1f1f1f",
"line-gap-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
3,
0,
3.5,
0.5,
18,
15
],
"line-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
7,
0,
7.5,
1
]
}
},
{
"id": "roads_highway",
"type": "line",
"source": "protomaps",
"source-layer": "roads",
"filter": [
"all",
[
"!has",
"is_tunnel"
],
[
"!has",
"is_bridge"
],
[
"==",
"kind",
"highway"
],
[
"!has",
"is_link"
]
],
"paint": {
"line-color": "#474747",
"line-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
3,
0,
6,
1.1,
12,
1.6,
15,
5,
18,
15
]
}
},
{
"id": "roads_rail",
"type": "line",
"source": "protomaps",
"source-layer": "roads",
"filter": [
"==",
"kind",
"rail"
],
"paint": {
"line-dasharray": [
0.3,
0.75
],
"line-opacity": 0.5,
"line-color": "#000000",
"line-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
3,
0,
6,
0.15,
18,
9
]
}
},
{
"id": "boundaries_country",
"type": "line",
"source": "protomaps",
"source-layer": "boundaries",
"filter": [
"<=",
"kind_detail",
2
],
"paint": {
"line-color": "#5b6374",
"line-width": 0.7,
"line-dasharray": [
"step",
[
"zoom"
],
[
"literal",
[
2
]
],
4,
[
"literal",
[
2,
1
]
]
]
}
},
{
"id": "boundaries",
"type": "line",
"source": "protomaps",
"source-layer": "boundaries",
"filter": [
">",
"kind_detail",
2
],
"paint": {
"line-color": "#5b6374",
"line-width": 0.4,
"line-dasharray": [
"step",
[
"zoom"
],
[
"literal",
[
2
]
],
4,
[
"literal",
[
2,
1
]
]
]
}
},
{
"id": "roads_bridges_other_casing",
"type": "line",
"source": "protomaps",
"source-layer": "roads",
"minzoom": 12,
"filter": [
"all",
[
"has",
"is_bridge"
],
[
"in",
"kind",
"other",
"path"
]
],
"paint": {
"line-color": "#2b2b2b",
"line-gap-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
14,
0,
20,
7
]
}
},
{
"id": "roads_bridges_link_casing",
"type": "line",
"source": "protomaps",
"source-layer": "roads",
"minzoom": 12,
"filter": [
"all",
[
"has",
"is_bridge"
],
[
"has",
"is_link"
]
],
"paint": {
"line-color": "#1f1f1f",
"line-gap-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
13,
0,
13.5,
1,
18,
11
],
"line-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
12,
0,
12.5,
1.5
]
}
},
{
"id": "roads_bridges_minor_casing",
"type": "line",
"source": "protomaps",
"source-layer": "roads",
"minzoom": 12,
"filter": [
"all",
[
"has",
"is_bridge"
],
[
"==",
"kind",
"minor_road"
]
],
"paint": {
"line-color": "#1f1f1f",
"line-gap-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
11,
0,
12.5,
0.5,
15,
2,
18,
11
],
"line-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
13,
0,
13.5,
0.8
]
}
},
{
"id": "roads_bridges_major_casing",
"type": "line",
"source": "protomaps",
"source-layer": "roads",
"minzoom": 12,
"filter": [
"all",
[
"has",
"is_bridge"
],
[
"==",
"kind",
"major_road"
]
],
"paint": {
"line-color": "#1f1f1f",
"line-gap-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
7,
0,
7.5,
0.5,
18,
10
],
"line-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
9,
0,
9.5,
1.5
]
}
},
{
"id": "roads_bridges_other",
"type": "line",
"source": "protomaps",
"source-layer": "roads",
"minzoom": 12,
"filter": [
"all",
[
"has",
"is_bridge"
],
[
"in",
"kind",
"other",
"path"
]
],
"paint": {
"line-color": "#333333",
"line-dasharray": [
2,
1
],
"line-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
14,
0,
20,
7
]
}
},
{
"id": "roads_bridges_minor",
"type": "line",
"source": "protomaps",
"source-layer": "roads",
"minzoom": 12,
"filter": [
"all",
[
"has",
"is_bridge"
],
[
"==",
"kind",
"minor_road"
]
],
"paint": {
"line-color": "#333333",
"line-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
11,
0,
12.5,
0.5,
15,
2,
18,
11
]
}
},
{
"id": "roads_bridges_link",
"type": "line",
"source": "protomaps",
"source-layer": "roads",
"minzoom": 12,
"filter": [
"all",
[
"has",
"is_bridge"
],
[
"has",
"is_link"
]
],
"paint": {
"line-color": "#333333",
"line-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
13,
0,
13.5,
1,
18,
11
]
}
},
{
"id": "roads_bridges_major",
"type": "line",
"source": "protomaps",
"source-layer": "roads",
"minzoom": 12,
"filter": [
"all",
[
"has",
"is_bridge"
],
[
"==",
"kind",
"major_road"
]
],
"paint": {
"line-color": "#3d3d3d",
"line-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
6,
0,
12,
1.6,
15,
3,
18,
13
]
}
},
{
"id": "roads_bridges_highway_casing",
"type": "line",
"source": "protomaps",
"source-layer": "roads",
"minzoom": 12,
"filter": [
"all",
[
"has",
"is_bridge"
],
[
"==",
"kind",
"highway"
],
[
"!has",
"is_link"
]
],
"paint": {
"line-color": "#1f1f1f",
"line-gap-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
3,
0,
3.5,
0.5,
18,
15
],
"line-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
7,
0,
7.5,
1,
20,
15
]
}
},
{
"id": "roads_bridges_highway",
"type": "line",
"source": "protomaps",
"source-layer": "roads",
"filter": [
"all",
[
"has",
"is_bridge"
],
[
"==",
"kind",
"highway"
],
[
"!has",
"is_link"
]
],
"paint": {
"line-color": "#474747",
"line-width": [
"interpolate",
[
"exponential",
1.6
],
[
"zoom"
],
3,
0,
6,
1.1,
12,
1.6,
15,
5,
18,
15
]
}
},
{
"id": "address_label",
"type": "symbol",
"source": "protomaps",
"source-layer": "buildings",
"minzoom": 18,
"filter": [
"==",
"kind",
"address"
],
"layout": {
"symbol-placement": "point",
"text-font": [
"Noto Sans Italic"
],
"text-field": [
"get",
"addr_housenumber"
],
"text-size": 12
},
"paint": {
"text-color": "#525252",
"text-halo-color": "#1f1f1f",
"text-halo-width": 1
}
},
{
"id": "water_waterway_label",
"type": "symbol",
"source": "protomaps",
"source-layer": "water",
"minzoom": 13,
"filter": [
"in",
"kind",
"river",
"stream"
],
"layout": {
"symbol-placement": "line",
"text-font": [
"Noto Sans Italic"
],
"text-field": [
"case",
[
"all",
[
"any",
[
"has",
"name"
],
[
"has",
"pgf:name"
]
],
[
"!",
[
"any",
[
"has",
"name2"
],
[
"has",
"pgf:name2"
]
]
],
[
"!",
[
"any",
[
"has",
"name3"
],
[
"has",
"pgf:name3"
]
]
]
],
[
"case",
[
"!=",
[
"get",
"script"
],
"Arabic"
],
[
"case",
[
"any",
[
"is-supported-script",
[
"get",
"name"
]
],
[
"has",
"pgf:name"
]
],
[
"format",
[
"coalesce",
[
"get",
"name:fa"
],
[
"get",
"name:en"
]
],
{},
"\n",
{},
[
"case",
[
"all",
[
"!",
[
"has",
"name:fa"
]
],
[
"has",
"name:en"
],
[
"!",
[
"has",
"script"
]
]
],
"",
[
"coalesce",
[
"get",
"pgf:name"
],
[
"get",
"name"
]
]
],
{
"text-font": [
"case",
[
"==",
[
"get",
"script"
],
"Devanagari"
],
[
"literal",
[
"Noto Sans Devanagari Regular v1"
]
],
[
"literal",
[
"Noto Sans Regular"
]
]
]
}
],
[
"get",
"name:en"
]
],
[
"format",
[
"coalesce",
[
"get",
"name:fa"
],
[
"get",
"pgf:name"
],
[
"get",
"name"
]
],
{}
]
],
[
"all",
[
"any",
[
"has",
"name"
],
[
"has",
"pgf:name"
]
],
[
"any",
[
"has",
"name2"
],
[
"has",
"pgf:name2"
]
],
[
"!",
[
"any",
[
"has",
"name3"
],
[
"has",
"pgf:name3"
]
]
]
],
[
"case",
[
"all",
[
"!=",
[
"get",
"script"
],
"Arabic"
],
[
"!=",
[
"get",
"script2"
],
"Arabic"
]
],
[
"format",
[
"get",
"name:fa"
],
{},
"\n",
{},
[
"coalesce",
[
"get",
"pgf:name"
],
[
"get",
"name"
]
],
{
"text-font": [
"case",
[
"==",
[
"get",
"script"
],
"Devanagari"
],
[
"literal",
[
"Noto Sans Devanagari Regular v1"
]
],
[
"literal",
[
"Noto Sans Regular"
]
]
]
},
"\n",
{},
[
"coalesce",
[
"get",
"pgf:name2"
],
[
"get",
"name2"
]
],
{
"text-font": [
"case",
[
"==",
[
"get",
"script2"
],
"Devanagari"
],
[
"literal",
[
"Noto Sans Devanagari Regular v1"
]
],
[
"literal",
[
"Noto Sans Regular"
]
]
]
}
],
[
"case",
[
"!=",
[
"get",
"script2"
],
"Arabic"
],
[
"format",
[
"coalesce",
[
"get",
"name:fa"
],
[
"get",
"pgf:name"
],
[
"get",
"name"
]
],
{},
"\n",
{},
[
"coalesce",
[
"get",
"pgf:name2"
],
[
"get",
"name2"
]
],
{
"text-font": [
"case",
[
"==",
[
"get",
"script2"
],
"Devanagari"
],
[
"literal",
[
"Noto Sans Devanagari Regular v1"
]
],
[
"literal",
[
"Noto Sans Regular"
]
]
]
}
],
[
"format",
[
"coalesce",
[
"get",
"name:fa"
],
[
"get",
"pgf:name2"
],
[
"get",
"name2"
]
],
{},
"\n",
{},
[
"coalesce",
[
"get",
"pgf:name"
],
[
"get",
"name"
]
],
{
"text-font": [
"case",
[
"==",
[
"get",
"script"
],
"Devanagari"
],
[
"literal",
[
"Noto Sans Devanagari Regular v1"
]
],
[
"literal",
[
"Noto Sans Regular"
]
]
]
}
]
]
],
[
"case",
[
"all",
[
"!=",
[
"get",
"script"
],
"Arabic"
],
[
"!=",
[
"get",
"script2"
],
"Arabic"
],
[
"!=",
[
"get",