Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
styles-ch.swisstopo.basiskarte-lsd.vt_v004.json
{
"version": 8,
"name": "styles-ch.swisstopo.basiskarte.vt_v004",
"metadata": {
"mapbox:autocomposite": true,
"mapbox:type": "template",
"maputnik:renderer": "mbgljs"
},
"center": [
8,
47
],
"zoom": 7,
"bearing": 0,
"pitch": 5.5,
"light": {
"anchor": "map",
"intensity": 0
},
"sources": {
"ch.swisstopo.vektorkarte.vt": {
"url": "https://tileserver.int.bgdi.ch/data/ch.swisstopo.vektorkarte.vt_v004.json",
"type": "vector"
},
"ch.swisstopo.swissnames3d": {
"url": "https://tileserver.int.bgdi.ch/data/ch.swisstopo.swissnames3d_v004.json",
"type": "vector"
},
"ch.swisstopo.amtliches-strassenverzeichnis_validiert": {
"url": "https://tileserver.int.bgdi.ch/data/ch.swisstopo.amtliches-strassenverzeichnis_validiert_v001.json",
"type": "vector"
},
"ch.bav.haltestellen-oev": {
"url": "https://tileserver.int.bgdi.ch/data/ch.bav.haltestellen-oev_v001.json",
"type": "vector"
},
"ch.swisstopo.swissalti3d-reliefschattierung": {
"url": "http://tileserver.int.bgdi.ch/json/relief.json",
"type": "raster"
},
"OpenMapTiles": {
"url": "https://tileserver.int.bgdi.ch/data/osm-2017-07-24-v3.6.2-europe-cut-20170918_v001.json",
"type": "vector"
}
},
"sprite": "mapbox://sprites/vib2d/cjeeaiozg3icf2sn7c3gjazob",
"glyphs": "https://tileserver.int.bgdi.ch/fonts/{fontstack}/{range}.pbf",
"layers": [
{
"id": "background_",
"type": "background",
"minzoom": 1,
"maxzoom": 22,
"layout": {
"visibility": "visible"
},
"paint": {
"background-color": {
"stops": [
[
6,
"rgba(1, 248, 152, 1)"
],
[
7,
"rgba(1, 248, 200, 1)"
],
[
8,
"rgba(1, 204, 248, 1)"
],
[
9,
"rgba(1, 131, 248, 1)"
],
[
10,
"rgba(1, 57, 248, 1)"
],
[
11,
"rgba(101, 1, 248, 1)"
],
[
12,
"rgba(147, 1, 248, 1)"
],
[
13,
"rgba(212, 1, 248, 1)"
],
[
14,
"rgba(248, 1, 146, 1)"
],
[
15,
"rgba(248, 1, 109, 1)"
],
[
16,
"rgba(248, 1, 5, 1)"
]
]
}
}
},
{
"id": "osm_settlement",
"type": "fill",
"source": "OpenMapTiles",
"source-layer": "landuse",
"minzoom": 4,
"maxzoom": 22,
"filter": [
"all",
[
"==",
"class",
"residential"
]
],
"layout": {
"visibility": "visible"
},
"paint": {
"fill-antialias": true,
"fill-opacity": {
"base": 1.8,
"stops": [
[
4,
0
],
[
10,
0.8
],
[
14,
0.5
],
[
15,
0
]
]
},
"fill-color": "rgb(243, 255,1)"
}
},
{
"id": "osm_landcover_glacier",
"type": "fill",
"source": "OpenMapTiles",
"source-layer": "landcover",
"minzoom": 10,
"maxzoom": 22,
"filter": [
"all",
[
"==",
"subclass",
"glacier"
]
],
"layout": {
"visibility": "visible"
},
"paint": {
"fill-antialias": true,
"fill-opacity": {
"base": 1,
"stops": [
[
10,
0
],
[
11,
0.2
]
]
},
"fill-color": "rgb(0, 170, 255)"
}
},
{
"id": "osm_landcover_woodland",
"type": "fill",
"source": "OpenMapTiles",
"source-layer": "landcover",
"minzoom": 11,
"maxzoom": 22,
"filter": [
"all",
[
"==",
"class",
"wood"
]
],
"layout": {
"visibility": "visible"
},
"paint": {
"fill-antialias": true,
"fill-opacity": {
"base": 1,
"stops": [
[
11,
0
],
[
12,
0.3
]
]
},
"fill-color": "rgb(65, 185, 65)"
}
},
{
"id": "osm_landuse_leisure",
"type": "fill",
"source": "OpenMapTiles",
"source-layer": "landcover",
"minzoom": 12,
"maxzoom": 22,
"filter": [
"all",
[
"in",
"subclass",
"park",
"recreation_ground"
]
],
"layout": {
"visibility": "visible"
},
"paint": {
"fill-antialias": true,
"fill-opacity": {
"base": 1,
"stops": [
[
12,
0
],
[
12.5,
1
]
]
},
"fill-color": "rgb(200, 235, 175)"
}
},
{
"id": "osm_landuse_cemetery",
"type": "fill",
"source": "OpenMapTiles",
"source-layer": "landuse",
"minzoom": 12,
"maxzoom": 22,
"filter": [
"all",
[
"==",
"class",
"cemetery"
]
],
"layout": {
"visibility": "visible"
},
"paint": {
"fill-antialias": true,
"fill-opacity": {
"base": 1,
"stops": [
[
12,
0
],
[
12.5,
1
]
]
},
"fill-color": "rgb(200, 235, 175)"
}
},
{
"id": "osm_landuse_hospital",
"type": "fill",
"source": "OpenMapTiles",
"source-layer": "landuse",
"minzoom": 11,
"maxzoom": 22,
"filter": [
"all",
[
"==",
"class",
"hospital"
]
],
"layout": {
"visibility": "visible"
},
"paint": {
"fill-antialias": true,
"fill-opacity": {
"base": 1,
"stops": [
[
12,
0
],
[
12.5,
1
]
]
},
"fill-color": "rgb(240, 240, 245)"
}
},
{
"id": "osm_hydrology_watercourse_underground",
"type": "line",
"source": "OpenMapTiles",
"source-layer": "waterway",
"minzoom": 11,
"maxzoom": 22,
"filter": [
"all",
[
"==",
"brunnel",
"tunnel"
]
],
"layout": {
"line-cap": "round",
"line-join": "round",
"line-miter-limit": 2,
"line-round-limit": 1.05,
"visibility": "visible"
},
"paint": {
"line-opacity": 1,
"line-color": "rgb(170, 210, 255)",
"line-width": {
"base": 1.8,
"stops": [
[
11,
0
],
[
13,
1
],
[
18,
3.5
]
]
},
"line-dasharray": [
3,
7
]
}
},
{
"id": "osm_roadtraffic_class4_tunnel",
"type": "line",
"source": "OpenMapTiles",
"source-layer": "transportation",
"minzoom": 13,
"maxzoom": 22,
"filter": [
"all",
[
"in",
"class",
"track",
"path"
],
[
"==",
"brunnel",
"tunnel"
]
],
"layout": {
"line-cap": "square",
"line-join": "round",
"line-miter-limit": 2,
"line-round-limit": 1.05,
"visibility": "visible"
},
"paint": {
"line-opacity": {
"base": 1.8,
"stops": [
[
13,
0
],
[
13.5,
1
]
]
},
"line-color": "rgb(0,0,0)",
"line-width": {
"base": 1.8,
"stops": [
[
13,
1
],
[
18,
4
]
]
},
"line-dasharray": [
0.4,
0.4
]
}
},
{
"id": "osm_roadtraffic_contour_class3_tunnel",
"type": "line",
"source": "OpenMapTiles",
"source-layer": "transportation",
"minzoom": 13,
"maxzoom": 22,
"filter": [
"all",
[
"in",
"class",
"raceway",
"service"
],
[
"==",
"brunnel",
"tunnel"
]
],
"layout": {
"line-cap": "square",
"line-join": "round",
"line-miter-limit": 2,
"line-round-limit": 1.05,
"visibility": "visible"
},
"paint": {
"line-opacity": {
"base": 1.8,
"stops": [
[
13,
0
],
[
13.5,
1
]
]
},
"line-color": "rgb(0,0,0)",
"line-width": {
"base": 1.8,
"stops": [
[
12,
3
],
[
18,
18
]
]
},
"line-dasharray": [
0.4,
0.4
]
}
},
{
"id": "osm_roadtraffic_class3_tunnel",
"type": "line",
"source": "OpenMapTiles",
"source-layer": "transportation",
"minzoom": 13,
"maxzoom": 22,
"filter": [
"all",
[
"in",
"class",
"raceway",
"service"
],
[
"==",
"brunnel",
"tunnel"
]
],
"layout": {
"line-cap": "square",
"line-join": "round",
"line-miter-limit": 2,
"line-round-limit": 1.05,
"visibility": "visible"
},
"paint": {
"line-opacity": {
"base": 1.8,
"stops": [
[
13,
0
],
[
13.5,
1
]
]
},
"line-color": "rgb(255, 255, 255)",
"line-width": {
"base": 1.8,
"stops": [
[
12,
2
],
[
18,
15
]
]
}
}
},
{
"id": "osm_roadtraffic_contour_class2_tunnel",
"type": "line",
"source": "OpenMapTiles",
"source-layer": "transportation",
"minzoom": 12,
"maxzoom": 22,
"filter": [
"all",
[
"in",
"class",
"tertiary",
"minor"
],
[
"==",
"brunnel",
"tunnel"
]
],
"layout": {
"line-cap": "square",
"line-join": "round",
"line-miter-limit": 2,
"line-round-limit": 1.05,
"visibility": "visible"
},
"paint": {
"line-opacity": {
"base": 1.8,
"stops": [
[
12,
0
],
[
12.5,
1
]
]
},
"line-color": "rgb(0,0,0)",
"line-width": {
"base": 1.8,
"stops": [
[
12,
3.5
],
[
18,
28
]
]
},
"line-dasharray": [
0.4,
0.4
]
}
},
{
"id": "osm_roadtraffic_class2_tunnel",
"type": "line",
"source": "OpenMapTiles",
"source-layer": "transportation",
"minzoom": 12,
"maxzoom": 22,
"filter": [
"all",
[
"in",
"class",
"tertiary",
"minor"
],
[
"==",
"brunnel",
"tunnel"
]
],
"layout": {
"line-cap": "square",
"line-join": "round",
"line-miter-limit": 2,
"line-round-limit": 1.05,
"visibility": "visible"
},
"paint": {
"line-opacity": {
"base": 1.8,
"stops": [
[
12,
0
],
[
12.5,
1
]
]
},
"line-color": "rgb(255, 255, 255)",
"line-width": {
"base": 1.8,
"stops": [
[
12,
2.5
],
[
18,
25
]
]
}
}
},
{
"id": "osm_roadtraffic_contour_class1_tunnel",
"type": "line",
"source": "OpenMapTiles",
"source-layer": "transportation",
"minzoom": 9,
"maxzoom": 22,
"filter": [
"all",
[
"in",
"class",
"primary",
"secondary"
],
[
"==",
"brunnel",
"tunnel"
]
],
"layout": {
"line-cap": "square",
"line-join": "round",
"line-miter-limit": 2,
"line-round-limit": 1.05,
"visibility": "visible"
},
"paint": {
"line-opacity": {
"base": 1.8,
"stops": [
[
10.5,
0
],
[
11,
1
]
]
},
"line-color": "rgb(0,0,0)",
"line-width": {
"base": 1.8,
"stops": [
[
10,
3.25
],
[
12,
5
],
[
18,
33
]
]
},
"line-dasharray": [
0.4,
0.4
]
}
},
{
"id": "osm_roadtraffic_class1_tunnel",
"type": "line",
"source": "OpenMapTiles",
"source-layer": "transportation",
"minzoom": 9,
"maxzoom": 22,
"filter": [
"all",
[
"in",
"class",
"primary",
"secondary"
],
[
"==",
"brunnel",
"tunnel"
]
],
"layout": {
"line-cap": "square",
"line-join": "round",
"line-miter-limit": 2,
"line-round-limit": 1.05,
"visibility": "visible"
},
"paint": {
"line-opacity": {
"base": 1.8,
"stops": [
[
10,
0
],
[
10.5,
1
]
]
},
"line-color": "rgb(255, 255, 255)",
"line-width": {
"base": 1.8,
"stops": [
[
10,
3
],
[
12,
4
],
[
18,
30
]
]
}
}
},
{
"id": "osm_roadtraffic_contour_highway_tunnel",
"type": "line",
"source": "OpenMapTiles",
"source-layer": "transportation",
"minzoom": 9,
"maxzoom": 22,
"filter": [
"all",
[
"in",
"class",
"motorway",
"trunk"
],
[
"==",
"brunnel",
"tunnel"
]
],
"layout": {
"line-cap": "butt",
"line-join": "bevel",
"line-miter-limit": 2,
"line-round-limit": 1.05,
"visibility": "visible"
},
"paint": {
"line-opacity": {
"base": 1.8,
"stops": [
[
11,
0
],
[
11.5,
1
]
]
},
"line-color": "rgb(0,0,0)",
"line-width": {
"base": 1.8,
"stops": [
[
9,
0.125
],
[
12,
0.5
],
[
18,
1.5
]
]
},
"line-gap-width": {
"base": 1.8,
"stops": [
[
9,
3
],
[
12,
4
],
[
14,
6
],
[
16,
10
],
[
18,
30
]
]
},
"line-dasharray": [
5,
5
]
}
},
{
"id": "osm_roadtraffic_highway_tunnel",
"type": "line",
"source": "OpenMapTiles",
"source-layer": "transportation",
"minzoom": 9,
"maxzoom": 22,
"filter": [
"all",
[
"in",
"class",
"motorway",
"trunk"
],
[
"==",
"brunnel",
"tunnel"
]
],
"layout": {
"line-cap": "butt",
"line-join": "round",
"line-miter-limit": 2,
"line-round-limit": 1.05,
"visibility": "visible"
},
"paint": {
"line-opacity": {
"base": 1.8,
"stops": [
[
9,
0
],
[
9.5,
1
],
[
13,
0.7
]
]
},
"line-color": "rgb(0, 255, 135)",
"line-width": {
"base": 1.8,
"stops": [
[
9,
3
],
[
12,
4
],
[
18,
30
]
]
}
}
},
{
"id": "osm_railtraffic_side_tunnel",
"type": "line",
"source": "OpenMapTiles",
"source-layer": "transportation",
"minzoom": 13,
"maxzoom": 22,
"filter": [
"all",
[
"==",
"class",
"rail"
],
[
"in",
"service",
"siding",
"yard",
"spur",
"crossover"
],
[
"==",
"brunnel",
"tunnel"
]
],
"layout": {
"line-cap": "butt",
"line-join": "round",
"line-miter-limit": 2,
"line-round-limit": 1.05,
"visibility": "visible"
},
"paint": {
"line-opacity": {
"base": 1.8,
"stops": [
[
13,
0
],
[
13.5,
1
]
]
},
"line-color": {
"stops": [
[
6,
"rgb(255, 0, 0)"
],
[
16,
"rgba(252, 255, 0, 1)"
]
]
},
"line-width": {
"base": 1.8,
"stops": [
[
8,
1
],
[
15,
1.5
],
[
18,
4
]
]
},
"line-dasharray": [
5,
3
]
}
},
{
"id": "osm_railtraffic_tunnel",
"type": "line",
"source": "OpenMapTiles",
"source-layer": "transportation",
"minzoom": 9,
"maxzoom": 22,
"filter": [
"all",
[
"==",
"class",
"rail"
],
[
"!has",
"service"
],
[
"==",
"brunnel",
"tunnel"
]
],
"layout": {
"line-cap": "butt",
"line-join": "round",
"line-miter-limit": 2,
"line-round-limit": 1.05,
"visibility": "visible"
},
"paint": {
"line-opacity": {
"base": 1.8,
"stops": [
[
9,
0
],
[
9.5,
1
]
]
},
"line-color": {
"stops": [
[
6,
"rgb(255, 0, 0)"
],
[
16,
"rgba(252, 255, 0, 1)"
]
]
},
"line-width": {
"base": 1.8,
"stops": [
[
8,
2
],
[
15,
3
],
[
18,
8
]
]
},
"line-dasharray": [
5,
3
]
}
},
{
"id": "osm_hydrology_watercourse",
"type": "line",
"source": "OpenMapTiles",
"source-layer": "waterway",
"minzoom": 12,
"maxzoom": 22,
"filter": [
"all"
],
"layout": {
"line-cap": "round",
"line-join": "round",
"line-miter-limit": 2,
"line-round-limit": 1.05,
"visibility": "visible"
},
"paint": {
"line-opacity": {
"base": 1.8,
"stops": [
[
12,
0
],
[
12.5,
1
]
]
},
"line-color": {
"stops": [
[
6,
"rgba(4, 166, 160, 1)"
],
[
10,
"rgba(19, 40, 63, 1)"
],
[
14,
"rgba(132, 122, 232, 1)"
]
]
},
"line-width": {
"base": 1.8,
"stops": [
[
11,
0
],
[
13,
2
],
[
18,
7
]
]
}
}
},
{
"id": "osm_hydrology_river",
"type": "fill",
"source": "OpenMapTiles",
"source-layer": "water",
"minzoom": 8,
"maxzoom": 22,
"filter": [
"all",
[
"==",
"class",
"river"
]
],
"layout": {
"visibility": "visible"
},
"paint": {
"fill-antialias": true,
"fill-opacity": {
"base": 1.8,
"stops": [
[
8,
0
],
[
8.5,
1
]
]
},
"fill-color": {
"stops": [
[
6,
"rgba(4, 166, 160, 1)"
],
[
10,
"rgba(19, 40, 63, 1)"
],
[
14,
"rgba(132, 122, 232, 1)"
]
]
}
}
},
{
"id": "osm_labels_watercourse",
"type": "symbol",
"source": "OpenMapTiles",
"source-layer": "waterway",
"minzoom": 13,
"maxzoom": 22,
"filter": [
"all"
],
"layout": {
"symbol-placement": "line",
"symbol-spacing": 250,
"text-rotation-alignment": "map",
"text-field": "{name}",
"text-font": [
"Frutiger Neue LT Pro Book"
],
"text-size": {
"stops": [
[
13,
12
],
[
18,
16
]
]
},
"text-max-width": 10,
"text-line-height": 1.2,
"text-letter-spacing": 0.1,
"text-justify": "center",
"text-anchor": "center",
"text-max-angle": 45,
"text-rotate": 0,
"text-padding": 100,
"text-keep-upright": true,
"text-transform": "none",
"text-allow-overlap": false,
"visibility": "visible"
},
"paint": {
"text-color": "rgb(0, 65, 125)",
"text-halo-color": "rgb(170, 210, 255)",
"text-halo-width": 0.5,
"text-halo-blur": 2
}
},
{
"id": "osm_hydrology_lake",
"type": "fill",
"source": "OpenMapTiles",
"source-layer": "water",
"minzoom": 6,
"maxzoom": 22,
"filter": [
"all",
[
"==",
"class",
"lake"
]
],
"layout": {
"visibility": "visible"
},
"paint": {
"fill-antialias": true,
"fill-opacity": 1,
"fill-color": {
"stops": [
[
6,
"rgba(4, 166, 160, 1)"
],
[
10,
"rgba(19, 40, 63, 1)"
],
[
14,
"rgba(132, 122, 232, 1)"
]
]
}
}
},
{
"id": "osm_hydrology_ocean",
"type": "fill",
"source": "OpenMapTiles",
"source-layer": "water",
"minzoom": 1,
"maxzoom": 22,
"filter": [
"all",
[
"==",
"class",
"ocean"
]
],
"layout": {
"visibility": "visible"
},
"paint": {
"fill-antialias": true,
"fill-opacity": 1,
"fill-color": {
"stops": [
[
6,
"rgba(4, 166, 160, 1)"
],
[
10,
"rgba(19, 40, 63, 1)"
],
[
14,
"rgba(132, 122, 232, 1)"
]
]
}
}
},
{
"id": "osm_ferryservice_car_ferry",
"type": "line",
"source": "OpenMapTiles",
"source-layer": "transportation",
"minzoom": 9,
"maxzoom": 22,
"filter": [
"all",
[
"==",
"class",
"ferry"
]
],
"layout": {
"line-cap": "round",
"line-join": "round",
"line-miter-limit": 2,
"line-round-limit": 1.05,
"visibility": "visible"
},
"paint": {
"line-opacity": {
"base": 1.8,
"stops": [
[
9,
0
],
[
9.5,
0.4
]
]
},
"line-color": "rgb(0,0,0)",
"line-width": {
"base": 1.8,
"stops": [
[
8,
0.25
],
[
12,
1
],
[
18,
2.5
]
]
},
"line-gap-width": {
"base": 1.8,
"stops": [
[
9,
3
],
[
12,
4
],
[
14,
5
],
[
18,
25
]
]
},
"line-dasharray": [
5,
3
]
}
},
{
"id": "osm_airtraffic_runway_contour",
"type": "line",
"source": "OpenMapTiles",
"source-layer": "aeroway",
"minzoom": 11,
"maxzoom": 22,
"filter": [
"all",
[
"in",
"class",
"runway",
"taxiway"
]
],
"layout": {
"line-cap": "butt",
"line-join": "round",
"line-miter-limit": 2,
"line-round-limit": 1.05,
"visibility": "visible"
},
"paint": {
"line-opacity": {
"base": 1.8,
"stops": [
[
12,
0
],
[
12.5,
1
]
]
},
"line-color": "rgb(0,0,0)",
"line-width": {
"base": 1.8,
"stops": [
[
9,
5.25
],
[
12,
8
],
[
18,
53
]
]
}
}
},
{
"id": "osm_roadtraffic_contour_class3",
"type": "line",
"source": "OpenMapTiles",
"source-layer": "transportation",
"minzoom": 13,
"maxzoom": 22,
"filter": [
"all",
[
"in",
"class",
"raceway",
"service"
],
[
"!has",
"brunnel"
]
],
"layout": {
"line-cap": "round",
"line-join": "bevel",
"line-miter-limit": 2,
"line-round-limit": 1.05,
"visibility": "visible"
},
"paint": {
"line-opacity": {
"base": 1.8,
"stops": [
[
13,
0
],
[
13.5,
1
]
]
},
"line-color": "rgb(0,0,0)",
"line-width": {
"base": 1.8,
"stops": [
[
12,
3
],
[
18,
18
]
]
}
}
},
{
"id": "osm_roadtraffic_contour_class2",
"type": "line",
"source": "OpenMapTiles",
"source-layer": "transportation",
"minzoom": 12,
"maxzoom": 22,
"filter": [
"all",
[
"in",
"class",
"tertiary",
"minor"
],
[
"!has",
"brunnel"
]
],
"layout": {
"line-cap": "round",
"line-join": "bevel",
"line-miter-limit": 2,
"line-round-limit": 1.05,
"visibility": "visible"
},
"paint": {
"line-opacity": {
"base": 1.8,
"stops": [
[
12.5,
0
],
[
13,
1
]
]
},
"line-color": "rgb(0,0,0)",
"line-width": {
"base": 1.8,
"stops": [
[
12,
3.5
],
[
18,
28
]
]
}
}
},
{
"id": "osm_roadtraffic_contour_class1",
"type": "line",
"source": "OpenMapTiles",
"source-layer": "transportation",
"minzoom": 9,
"maxzoom": 22,
"filter": [
"all",
[
"in",
"class",
"primary",
"secondary"
],
[
"!has",
"brunnel"
]
],
"layout": {
"line-cap": "round",
"line-join": "bevel",
"line-miter-limit": 2,
"line-round-limit": 1.05,
"visibility": "visible"
},
"paint": {
"line-opacity": {
"base": 1.8,
"stops": [
[
10.5,
0
],
[
11,
1
]
]
},
"line-color": "rgb(0,0,0)",
"line-width": {
"base": 1.8,
"stops": [
[
10,
3.25
],
[
12,
5
],
[
18,
33
]
]
}
}
},
{
"id": "osm_roadtraffic_contour_highway",
"type": "line",
"source": "OpenMapTiles",
"source-layer": "transportation",
"minzoom": 9,
"maxzoom": 22,
"filter": [
"all",
[
"in",
"class",
"motorway",
"trunk"
],
[
"!has",
"brunnel"
]
],
"layout": {
"line-cap": "round",
"line-join": "bevel",
"line-miter-limit": 2,
"line-round-limit": 1.05,
"visibility": "visible"
},
"paint": {
"line-opacity": {
"base": 1.8,
"stops": [
[
11,
0
],
[
11.5,
1
]
]
},
"line-color": "rgb(0,0,0)",
"line-width": {
"base": 1.8,
"stops": [
[
9,
3.25
],
[
12,
5
],
[
18,
33
]
]
}
}
},
{
"id": "osm_roadtraffic_class4",
"type": "line",
"source": "OpenMapTiles",
"source-layer": "transportation",
"minzoom": 13,
"maxzoom": 22,
"filter": [
"all",
[
"in",
"class",
"track",
"path"
],
[
"!has",
"brunnel"
]
],
"layout": {
"line-cap": "square",
"line-join": "round",
"line-miter-limit": 2,
"line-round-limit": 1.05,
"visibility": "visible"
},
"paint": {
"line-opacity": {
"base": 1.8,
"stops": [
[
13,
0
],
[
13.5,
1
]
]
},
"line-color": "rgb(0,0,0)",
"line-width": {
"base": 1.8,
"stops": [
[
13,
1
],
[
18,
4
]
]
},
"line-dasharray": [
5,
1
]
}
},
{
"id": "osm_roadtraffic_class3",
"type": "line",
"source": "OpenMapTiles",
"source-layer": "transportation",
"minzoom": 13,
"maxzoom": 22,
"filter": [
"all",
[
"in",
"class",
"raceway",
"service"
],
[
"!has",
"brunnel"
]
],
"layout": {
"line-cap": "round",
"line-join": "round",
"line-miter-limit": 2,
"line-round-limit": 1.05,
"visibility": "visible"
},
"paint": {
"line-opacity": {
"base": 1.8,
"stops": [
[
13,
0
],
[
13.5,
1
]
]
},
"line-color": "rgb(255, 255, 255)",
"line-width": {
"base": 1.8,
"stops": [
[
12,
2
],
[
18,
15
]
]
}
}
},
{
"id": "osm_roadtraffic_class2",
"type": "line",
"source": "OpenMapTiles",
"source-layer": "transportation",
"minzoom": 12,
"maxzoom": 22,
"filter": [
"all",
[
"in",
"class",
"tertiary",
"minor"
],
[
"!has",
"brunnel"
]
],
"layout": {
"line-cap": "round",
"line-join": "round",
"line-miter-limit": 2,
"line-round-limit": 1.05,
"visibility": "visible"
},
"paint": {
"line-opacity": {
"base": 1.8,
"stops": [
[
12,
0
],
[
12.5,
1
]
]
},
"line-color": "rgb(255, 255, 255)",
"line-width": {
"base": 1.8,
"stops": [
[
12,
2.5
],
[
18,
25
]
]
}
}
},
{
"id": "osm_airtraffic_runway",
"type": "line",
"source": "OpenMapTiles",
"source-layer": "aeroway",
"minzoom": 11,
"maxzoom": 22,
"filter": [
"all",
[
"in",
"class",
"runway",
"taxiway"
]
],
"layout": {
"line-cap": "butt",
"line-join": "bevel",
"line-miter-limit": 2,
"line-round-limit": 1.05,
"visibility": "visible"
},
"paint": {
"line-opacity": {
"base": 1.8,
"stops": [
[
11,
0
],
[
11.5,
1
]
]
},
"line-color": "rgb(255, 255, 255)",
"line-width": {
"base": 1.8,
"stops": [
[
9,
5
],
[
12,
7
],
[
18,
50
]
]
}
}
},
{
"id": "osm_roadtraffic_class1",
"type": "line",
"source": "OpenMapTiles",
"source-layer": "transportation",
"minzoom": 9,
"maxzoom": 22,
"filter": [
"all",
[
"in",
"class",
"primary",
"secondary"
],
[
"!has",
"brunnel"
]
],
"layout": {
"line-cap": "round",
"line-join": "bevel",
"line-miter-limit": 2,
"line-round-limit": 1.05,
"visibility": "visible"
},
"paint": {
"line-opacity": {
"base": 1.8,
"stops": [
[
10,
0
],
[
10.5,
1
]
]
},
"line-color": "rgb(255, 255, 255)",
"line-width": {
"base": 1.8,
"stops": [
[
10,
3
],
[
12,
4
],
[
18,
30
]
]
}
}
},
{
"id": "osm_roadtraffic_highway",
"type": "line",
"source": "OpenMapTiles",
"source-layer": "transportation",
"minzoom": 9,
"maxzoom": 22,
"filter": [
"all",
[
"in",
"class",
"motorway",
"trunk"
],
[
"!has",
"brunnel"
]
],
"layout": {
"line-cap": "round",
"line-join": "bevel",
"line-miter-limit": 2,
"line-round-limit": 1.05,
"visibility": "visible"
},
"paint": {
"line-opacity": {
"base": 1.8,
"stops": [
[
9,
0
],
[
9.5,
1
]
]
},
"line-color": "rgb(0, 255, 135)",
"line-width": {
"base": 1.8,
"stops": [
[
9,
3
],
[
12,
4
],
[
18,
30
]
]
}
}
},
{
"id": "osm_railtraffic_side",
"type": "line",
"source": "OpenMapTiles",
"source-layer": "transportation",
"minzoom": 13,
"maxzoom": 22,
"filter": [
"all",
[
"==",
"class",
"rail"
],
[
"in",
"service",
"siding",
"yard",
"spur",
"crossover"
],
[
"!has",
"brunnel"
]
],
"layout": {
"line-cap": "round",
"line-join": "round",
"line-miter-limit": 2,
"line-round-limit": 1.05,
"visibility": "visible"
},
"paint": {
"line-opacity": {
"base": 1.8,
"stops": [
[
13,
0
],
[
13.5,
1
]
]
},
"line-color": {
"stops": [
[
6,
"rgb(255, 0, 0)"
],
[
16,
"rgba(252, 255, 0, 1)"
]
]
},
"line-width": {
"base": 1.8,
"stops": [
[
8,
1
],
[
15,
1.5
],
[
18,
4
]
]
}
}
},
{
"id": "osm_railtraffic_",
"type": "line",
"source": "OpenMapTiles",
"source-layer": "transportation",
"minzoom": 9,
"maxzoom": 22,
"filter": [
"all",
[
"==",
"class",
"rail"
],
[
"!has",
"service"
],
[
"!has",
"brunnel"
]
],
"layout": {
"line-cap": "round",
"line-join": "round",
"line-miter-limit": 2,
"line-round-limit": 1.05,
"visibility": "visible"
},
"paint": {
"line-opacity": {
"base": 1.8,
"stops": [
[
9,
0
],
[
9.5,
1
]
]
},
"line-color": {
"stops": [
[
6,
"rgb(255, 0, 0)"
],
[
16,
"rgba(252, 255, 0, 1)"
]
]
},
"line-width": {
"base": 1.8,
"stops": [
[
8,
2
],
[
15,
3
],
[
18,
8
]
]
}
}
},
{
"id": "osm_buildings_",
"type": "fill",
"source": "OpenMapTiles",
"source-layer": "building",
"minzoom": 14,
"maxzoom": 22,
"filter": [
"all"
],
"layout": {
"visibility": "visible"
},
"paint": {
"fill-antialias": true,
"fill-opacity": {
"base": 1.8,
"stops": [
[
14,
0
],
[
15,
1
]
]
},
"fill-color": {
"stops": [
[
14,
"rgb(0, 0, 0)"
],
[
16,
"rgba(146, 2, 249, 1)"
]
]
}
}
},
{
"id": "osm_roadtraffic_contour_class3_level1",
"type": "line",
"source": "OpenMapTiles",
"source-layer": "transportation",
"minzoom": 13,
"maxzoom": 22,
"filter": [
"all",
[
"in",
"class",
"raceway",
"service"
],
[
"==",
"brunnel",
"bridge"
]
],
"layout": {
"line-cap": "butt",
"line-join": "bevel",
"line-miter-limit": 2,
"line-round-limit": 1.05,
"visibility": "visible"
},
"paint": {
"line-opacity": {
"base": 1.8,
"stops": [
[
13,
0
],
[
13.5,
1
]
]
},
"line-color": "rgb(0,0,0)",
"line-width": {
"base": 1.8,
"stops": [
[
12,
3
],
[
18,
18
]
]
}
}
},
{
"id": "osm_roadtraffic_contour_class2_level1",
"type": "line",
"source": "OpenMapTiles",
"source-layer": "transportation",
"minzoom": 12,
"maxzoom": 22,
"filter": [
"all",
[
"in",
"class",
"tertiary",
"minor"
],
[
"==",
"brunnel",
"bridge"
]
],
"layout": {
"line-cap": "butt",
"line-join": "bevel",
"line-miter-limit": 2,
"line-round-limit": 1.05,
"visibility": "visible"
},
"paint": {
"line-opacity": {
"base": 1.8,
"stops": [
[
12.5,
0
],
[
13,
1
]
]
},
"line-color": "rgb(0,0,0)",
"line-width": {
"base": 1.8,
"stops": [
[
12,
3.5
],
[
18,
28
]
]
}
}
},
{
"id": "osm_roadtraffic_contour_class1_level1",
"type": "line",
"source": "OpenMapTiles",
"source-layer": "transportation",
"minzoom": 9,
"maxzoom": 22,
"filter": [
"all",
[
"in",
"class",
"primary",
"secondary"
],
[
"==",
"brunnel",
"bridge"
]
],
"layout": {
"line-cap": "butt",
"line-join": "bevel",
"line-miter-limit": 2,
"line-round-limit": 1.05,
"visibility": "visible"
},
"paint": {
"line-opacity": {
"base": 1.8,
"stops": [
[
10.5,
0
],
[
11,
1
]
]
},
"line-color": "rgb(0,0,0)",
"line-width": {
"base": 1.8,
"stops": [
[
10,
3.25
],
[
12,
5
],
[
18,
33
]
]
}
}
},
{
"id": "osm_roadtraffic_contour_highway_level1",
"type": "line",
"source": "OpenMapTiles",
"source-layer": "transportation",
"minzoom": 9,
"maxzoom": 22,
"filter": [
"all",
[
"in",
"class",
"motorway",
"trunk"
],
[
"==",
"brunnel",
"bridge"
]
],
"layout": {
"line-cap": "butt",
"line-join": "bevel",
"line-miter-limit": 2,
"line-round-limit": 1.05,
"visibility": "visible"
},
"paint": {
"line-opacity": {
"base": 1.8,
"stops": [
[
11,
0
],
[
11.5,
1
]
]
},
"line-color": "rgb(0,0,0)",
"line-width": {
"base": 1.8,
"stops": [
[
9,
3.25
],
[
12,
5
],
[
18,
33
]
]
}
}
},
{
"id": "osm_roadtraffic_class4_level1",
"type": "line",
"source": "OpenMapTiles",
"source-layer": "transportation",
"minzoom": 13,
"maxzoom": 22,
"filter": [
"all",
[
"in",
"class",
"track",
"path"
],
[
"==",
"brunnel",
"bridge"
]
],
"layout": {
"line-cap": "square",
"line-join": "round",
"line-miter-limit": 2,
"line-round-limit": 1.05,
"visibility": "visible"
},
"paint": {
"line-opacity": {
"base": 1.8,
"stops": [
[
13,
0
],
[
13.5,
1
]
]
},
"line-color": "rgb(0,0,0)",
"line-width": {
"base": 1.8,
"stops": [
[
13,
1
],
[
18,
4
]
]
},
"line-dasharray": [
5,
1
]
}
},
{
"id": "osm_roadtraffic_class3_level1",
"type": "line",
"source": "OpenMapTiles",
"source-layer": "transportation",
"minzoom": 13,
"maxzoom": 22,
"filter": [
"all",
[
"in",
"class",
"raceway",
"service"
],
[
"==",
"brunnel",
"bridge"
]
],
"layout": {
"line-cap": "round",
"line-join": "round",
"line-miter-limit": 2,
"line-round-limit": 1.05,
"visibility": "visible"
},
"paint": {
"line-opacity": {
"base": 1.8,
"stops": [
[
13,
0
],
[
13.5,
1
]
]
},
"line-color": "rgb(255, 255, 255)",
"line-width": {
"base": 1.8,
"stops": [
[
12,
2
],
[
18,
15
]
]
}
}
},
{
"id": "osm_roadtraffic_class2_level1",
"type": "line",
"source": "OpenMapTiles",
"source-layer": "transportation",
"minzoom": 12,
"maxzoom": 22,
"filter": [
"all",
[
"in",
"class",
"tertiary",
"minor"
],
[
"==",
"brunnel",
"bridge"
]
],
"layout": {
"line-cap": "round",
"line-join": "round",
"line-miter-limit": 2,
"line-round-limit": 1.05,
"visibility": "visible"
},
"paint": {
"line-opacity": {
"base": 1.8,
"stops": [
[
12,
0
],
[
12.5,
1
]
]
},
"line-color": "rgb(255, 255, 255)",
"line-width": {
"base": 1.8,
"stops": [
[
12,
2.5
],
[
18,
25
]
]
}
}
},
{
"id": "osm_roadtraffic_class1_level1",
"type": "line",
"source": "OpenMapTiles",
"source-layer": "transportation",
"minzoom": 9,
"maxzoom": 22,
"filter": [
"all",
[
"in",
"class",
"primary",
"secondary"
],
[
"==",
"brunnel",
"bridge"
]
],
"layout": {
"line-cap": "round",
"line-join": "bevel",
"line-miter-limit": 2,
"line-round-limit": 1.05,
"visibility": "visible"
},
"paint": {
"line-opacity": {
"base": 1.8,
"stops": [
[
10,
0
],
[
10.5,
1
]
]
},
"line-color": "rgb(255, 255, 255)",
"line-width": {
"base": 1.8,
"stops": [
[
10,
3
],
[
12,
4
],
[
18,
30
]
]
}
}
},
{
"id": "osm_roadtraffic_highway_level1",
"type": "line",
"source": "OpenMapTiles",
"source-layer": "transportation",
"minzoom": 9,
"maxzoom": 22,
"filter": [
"all",
[
"in",
"class",
"motorway",
"trunk"
],
[
"==",
"brunnel",
"bridge"
]
],