generated from ztimson/template
515 lines
12 KiB
JSON
515 lines
12 KiB
JSON
{
|
|
"version": 8,
|
|
"name": "High Contrast",
|
|
"id": "high-contrast",
|
|
"glyphs": "/fonts/{fontstack}/{range}.pbf",
|
|
"sources": {
|
|
"osm": {
|
|
"type": "vector",
|
|
"url": "mbtiles://osm"
|
|
},
|
|
"contours": {
|
|
"type": "vector",
|
|
"url": "mbtiles://contours"
|
|
}
|
|
},
|
|
"layers": [
|
|
{
|
|
"id": "background",
|
|
"type": "background",
|
|
"paint": {
|
|
"background-color": "#ffffff"
|
|
}
|
|
},
|
|
{
|
|
"id": "landcover",
|
|
"type": "fill",
|
|
"source": "osm",
|
|
"source-layer": "landcover",
|
|
"paint": {
|
|
"fill-color": [
|
|
"match", ["get", "class"],
|
|
"wood", "#e5e5e5",
|
|
"forest", "#e5e5e5",
|
|
"grass", "#f5f5f5",
|
|
"grassland", "#f5f5f5",
|
|
"scrub", "#eeeeee",
|
|
"heath", "#eeeeee",
|
|
"wetland", "#ededed",
|
|
"farmland", "#f8f8f8",
|
|
"ice", "#ffffff",
|
|
"#f4f4f4"
|
|
],
|
|
"fill-opacity": 1
|
|
}
|
|
},
|
|
{
|
|
"id": "landuse",
|
|
"type": "fill",
|
|
"source": "osm",
|
|
"source-layer": "landuse",
|
|
"paint": {
|
|
"fill-color": [
|
|
"match", ["get", "class"],
|
|
"military", "#e8e8e8",
|
|
"industrial", "#eeeeee",
|
|
"commercial", "#f0f0f0",
|
|
"retail", "#f0f0f0",
|
|
"cemetery", "#e9e9e9",
|
|
"allotments", "#eeeeee",
|
|
"farmland", "#f8f8f8",
|
|
"farmyard", "#f8f8f8",
|
|
"residential", "#ffffff",
|
|
"#ffffff"
|
|
],
|
|
"fill-outline-color": "#d0d0d0",
|
|
"fill-opacity": 1
|
|
}
|
|
},
|
|
{
|
|
"id": "parks",
|
|
"type": "fill",
|
|
"source": "osm",
|
|
"source-layer": "park",
|
|
"paint": {
|
|
"fill-color": "#eeeeee",
|
|
"fill-outline-color": "#b0b0b0",
|
|
"fill-opacity": 1
|
|
}
|
|
},
|
|
{
|
|
"id": "water",
|
|
"type": "fill",
|
|
"source": "osm",
|
|
"source-layer": "water",
|
|
"paint": {
|
|
"fill-color": "#e5e5e5",
|
|
"fill-outline-color": "#777777"
|
|
}
|
|
},
|
|
{
|
|
"id": "waterways",
|
|
"type": "line",
|
|
"source": "osm",
|
|
"source-layer": "waterway",
|
|
"minzoom": 5,
|
|
"paint": {
|
|
"line-color": "#777777",
|
|
"line-width": [
|
|
"interpolate", ["linear"], ["zoom"],
|
|
5, 0.5, 9, 0.9, 13, 1.6, 17, 3.5
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "contours-line",
|
|
"type": "line",
|
|
"source": "contours",
|
|
"source-layer": "contour",
|
|
"minzoom": 10,
|
|
"paint": {
|
|
"line-color": "#888888",
|
|
"line-opacity": [
|
|
"interpolate", ["linear"], ["zoom"],
|
|
10, 0.45, 14, 0.7, 18, 0.85
|
|
],
|
|
"line-width": [
|
|
"interpolate", ["linear"], ["zoom"],
|
|
10, 0.35, 14, 0.65, 18, 0.9
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "boundary-admin-minor",
|
|
"type": "line",
|
|
"source": "osm",
|
|
"source-layer": "boundary",
|
|
"filter": [
|
|
"all",
|
|
["has", "admin_level"],
|
|
["!=", "admin_level", 2],
|
|
["!=", "admin_level", 4],
|
|
["!=", "maritime", 1]
|
|
],
|
|
"minzoom": 5,
|
|
"paint": {
|
|
"line-color": "#888888",
|
|
"line-width": [
|
|
"interpolate", ["linear"], ["zoom"],
|
|
5, 0.45, 9, 0.7, 13, 1
|
|
],
|
|
"line-opacity": 1,
|
|
"line-dasharray": [2, 2]
|
|
}
|
|
},
|
|
{
|
|
"id": "boundary-state",
|
|
"type": "line",
|
|
"source": "osm",
|
|
"source-layer": "boundary",
|
|
"filter": [
|
|
"all",
|
|
["==", "admin_level", 4],
|
|
["!=", "maritime", 1]
|
|
],
|
|
"minzoom": 2,
|
|
"paint": {
|
|
"line-color": "#555555",
|
|
"line-width": [
|
|
"interpolate", ["linear"], ["zoom"],
|
|
2, 0.6, 5, 0.9, 9, 1.3, 13, 1.8
|
|
],
|
|
"line-opacity": 1,
|
|
"line-dasharray": [4, 2]
|
|
}
|
|
},
|
|
{
|
|
"id": "boundary-country",
|
|
"type": "line",
|
|
"source": "osm",
|
|
"source-layer": "boundary",
|
|
"filter": [
|
|
"all",
|
|
["==", "admin_level", 2],
|
|
["!=", "maritime", 1]
|
|
],
|
|
"paint": {
|
|
"line-color": "#111111",
|
|
"line-width": [
|
|
"interpolate", ["linear"], ["zoom"],
|
|
0, 0.8, 4, 1.4, 7, 2, 12, 2.6
|
|
],
|
|
"line-opacity": 1
|
|
}
|
|
},
|
|
{
|
|
"id": "aeroway",
|
|
"type": "fill",
|
|
"source": "osm",
|
|
"source-layer": "aeroway",
|
|
"minzoom": 10,
|
|
"filter": ["in", "class", "runway", "taxiway"],
|
|
"paint": {
|
|
"fill-color": "#dedede",
|
|
"fill-outline-color": "#555555"
|
|
}
|
|
},
|
|
{
|
|
"id": "roads-casing-minor",
|
|
"type": "line",
|
|
"source": "osm",
|
|
"source-layer": "transportation",
|
|
"filter": [
|
|
"in", "class",
|
|
"minor", "service", "residential", "living_street"
|
|
],
|
|
"minzoom": 11,
|
|
"layout": {
|
|
"line-cap": "round",
|
|
"line-join": "round"
|
|
},
|
|
"paint": {
|
|
"line-color": "#999999",
|
|
"line-width": [
|
|
"interpolate", ["linear"], ["zoom"],
|
|
11, 0.6, 14, 2, 16, 3.6, 18, 6
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "roads-casing",
|
|
"type": "line",
|
|
"source": "osm",
|
|
"source-layer": "transportation",
|
|
"filter": [
|
|
"in", "class",
|
|
"motorway", "trunk", "primary", "secondary", "tertiary"
|
|
],
|
|
"minzoom": 5,
|
|
"layout": {
|
|
"line-cap": "round",
|
|
"line-join": "round"
|
|
},
|
|
"paint": {
|
|
"line-color": "#333333",
|
|
"line-width": [
|
|
"interpolate", ["linear"], ["zoom"],
|
|
5, 1, 8, 1.8, 12, 3, 16, 7
|
|
],
|
|
"line-opacity": 1
|
|
}
|
|
},
|
|
{
|
|
"id": "roads-motorway",
|
|
"type": "line",
|
|
"source": "osm",
|
|
"source-layer": "transportation",
|
|
"filter": ["in", "class", "motorway", "trunk"],
|
|
"minzoom": 5,
|
|
"layout": {
|
|
"line-cap": "round",
|
|
"line-join": "round"
|
|
},
|
|
"paint": {
|
|
"line-color": "#ffffff",
|
|
"line-width": [
|
|
"interpolate", ["linear"], ["zoom"],
|
|
5, 0.5, 8, 1.1, 12, 2.2, 16, 5
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "roads-primary",
|
|
"type": "line",
|
|
"source": "osm",
|
|
"source-layer": "transportation",
|
|
"filter": ["in", "class", "primary", "secondary"],
|
|
"minzoom": 5,
|
|
"layout": {
|
|
"line-cap": "round",
|
|
"line-join": "round"
|
|
},
|
|
"paint": {
|
|
"line-color": "#ffffff",
|
|
"line-width": [
|
|
"interpolate", ["linear"], ["zoom"],
|
|
5, 0.35, 8, 0.9, 12, 2, 16, 4
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "roads-tertiary",
|
|
"type": "line",
|
|
"source": "osm",
|
|
"source-layer": "transportation",
|
|
"filter": ["==", "class", "tertiary"],
|
|
"minzoom": 7,
|
|
"layout": {
|
|
"line-cap": "round",
|
|
"line-join": "round"
|
|
},
|
|
"paint": {
|
|
"line-color": "#ffffff",
|
|
"line-width": [
|
|
"interpolate", ["linear"], ["zoom"],
|
|
7, 0.3, 10, 0.7, 14, 1.8, 18, 3.5
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "roads-minor",
|
|
"type": "line",
|
|
"source": "osm",
|
|
"source-layer": "transportation",
|
|
"filter": [
|
|
"in", "class",
|
|
"minor", "service", "residential", "living_street"
|
|
],
|
|
"minzoom": 11,
|
|
"layout": {
|
|
"line-cap": "round",
|
|
"line-join": "round"
|
|
},
|
|
"paint": {
|
|
"line-color": "#ffffff",
|
|
"line-width": [
|
|
"interpolate", ["linear"], ["zoom"],
|
|
11, 0.3, 14, 1.1, 16, 2.2, 18, 4
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "roads-path",
|
|
"type": "line",
|
|
"source": "osm",
|
|
"source-layer": "transportation",
|
|
"filter": [
|
|
"in", "class",
|
|
"path", "track", "pedestrian", "footway",
|
|
"cycleway", "bridleway", "steps"
|
|
],
|
|
"minzoom": 13,
|
|
"layout": {
|
|
"line-cap": "butt",
|
|
"line-join": "round"
|
|
},
|
|
"paint": {
|
|
"line-color": "#808080",
|
|
"line-opacity": 0.85,
|
|
"line-width": [
|
|
"interpolate", ["linear"], ["zoom"],
|
|
13, 0.3, 15, 0.5, 18, 1
|
|
],
|
|
"line-dasharray": [3, 2]
|
|
}
|
|
},
|
|
{
|
|
"id": "railways",
|
|
"type": "line",
|
|
"source": "osm",
|
|
"source-layer": "transportation",
|
|
"filter": ["in", "class", "rail", "light_rail", "subway", "tram"],
|
|
"minzoom": 8,
|
|
"paint": {
|
|
"line-color": "#333333",
|
|
"line-width": [
|
|
"interpolate", ["linear"], ["zoom"],
|
|
8, 0.5, 12, 1, 16, 1.8
|
|
],
|
|
"line-dasharray": [2, 1]
|
|
}
|
|
},
|
|
{
|
|
"id": "buildings",
|
|
"type": "fill",
|
|
"source": "osm",
|
|
"source-layer": "building",
|
|
"minzoom": 13,
|
|
"paint": {
|
|
"fill-color": "#e5e5e5",
|
|
"fill-outline-color": "#777777",
|
|
"fill-opacity": [
|
|
"interpolate", ["linear"], ["zoom"],
|
|
13, 0.5, 15, 1
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "road-labels",
|
|
"type": "symbol",
|
|
"source": "osm",
|
|
"source-layer": "transportation_name",
|
|
"minzoom": 12,
|
|
"layout": {
|
|
"symbol-placement": "line",
|
|
"text-field": [
|
|
"coalesce", ["get", "name:en"], ["get", "name"]
|
|
],
|
|
"text-font": ["Noto Sans Regular"],
|
|
"text-size": [
|
|
"interpolate", ["linear"], ["zoom"],
|
|
12, 10, 16, 12, 20, 14
|
|
],
|
|
"text-max-angle": 30,
|
|
"symbol-spacing": 250
|
|
},
|
|
"paint": {
|
|
"text-color": "#111111",
|
|
"text-halo-color": "#ffffff",
|
|
"text-halo-width": 1.5
|
|
}
|
|
},
|
|
{
|
|
"id": "rail-labels",
|
|
"type": "symbol",
|
|
"source": "osm",
|
|
"source-layer": "transportation_name",
|
|
"filter": ["in", "class", "rail", "transit"],
|
|
"minzoom": 13,
|
|
"layout": {
|
|
"symbol-placement": "line",
|
|
"text-field": [
|
|
"coalesce", ["get", "name:en"], ["get", "name"]
|
|
],
|
|
"text-font": ["Noto Sans Regular"],
|
|
"text-size": 10
|
|
},
|
|
"paint": {
|
|
"text-color": "#222222",
|
|
"text-halo-color": "#ffffff",
|
|
"text-halo-width": 1.5
|
|
}
|
|
},
|
|
{
|
|
"id": "place-labels",
|
|
"type": "symbol",
|
|
"source": "osm",
|
|
"source-layer": "place",
|
|
"minzoom": 2,
|
|
"filter": ["!=", "class", "continent"],
|
|
"layout": {
|
|
"text-field": [
|
|
"coalesce",
|
|
["get", "name:en"],
|
|
["get", "name_en"],
|
|
["get", "name"]
|
|
],
|
|
"text-font": ["Noto Sans Regular"],
|
|
"text-size": [
|
|
"interpolate", ["linear"], ["zoom"],
|
|
2, 10, 6, 12, 10, 14, 14, 16
|
|
],
|
|
"text-max-width": 10
|
|
},
|
|
"paint": {
|
|
"text-color": "#111111",
|
|
"text-halo-color": "#ffffff",
|
|
"text-halo-width": 2
|
|
}
|
|
},
|
|
{
|
|
"id": "poi-labels",
|
|
"type": "symbol",
|
|
"source": "osm",
|
|
"source-layer": "poi",
|
|
"minzoom": 14,
|
|
"layout": {
|
|
"text-field": [
|
|
"coalesce",
|
|
["get", "name:en"],
|
|
["get", "name_en"],
|
|
["get", "name"]
|
|
],
|
|
"text-font": ["Noto Sans Regular"],
|
|
"text-size": [
|
|
"interpolate", ["linear"], ["zoom"],
|
|
14, 9, 18, 12
|
|
]
|
|
},
|
|
"paint": {
|
|
"text-color": "#111111",
|
|
"text-halo-color": "#ffffff",
|
|
"text-halo-width": 1.5
|
|
}
|
|
},
|
|
{
|
|
"id": "airport-labels",
|
|
"type": "symbol",
|
|
"source": "osm",
|
|
"source-layer": "aerodrome_label",
|
|
"minzoom": 9,
|
|
"layout": {
|
|
"text-field": [
|
|
"coalesce", ["get", "name:en"], ["get", "name"]
|
|
],
|
|
"text-font": ["Noto Sans Regular"],
|
|
"text-size": [
|
|
"interpolate", ["linear"], ["zoom"],
|
|
9, 10, 14, 13
|
|
]
|
|
},
|
|
"paint": {
|
|
"text-color": "#111111",
|
|
"text-halo-color": "#ffffff",
|
|
"text-halo-width": 1.5
|
|
}
|
|
},
|
|
{
|
|
"id": "house-numbers",
|
|
"type": "symbol",
|
|
"source": "osm",
|
|
"source-layer": "housenumber",
|
|
"minzoom": 17,
|
|
"layout": {
|
|
"text-field": ["to-string", ["get", "housenumber"]],
|
|
"text-font": ["Noto Sans Regular"],
|
|
"text-size": 10
|
|
},
|
|
"paint": {
|
|
"text-color": "#222222",
|
|
"text-halo-color": "#ffffff",
|
|
"text-halo-width": 1
|
|
}
|
|
}
|
|
]
|
|
} |