generated from ztimson/template
init
This commit is contained in:
@@ -0,0 +1,535 @@
|
||||
|
||||
{
|
||||
"version": 8,
|
||||
"name": "Light Topographic",
|
||||
"id": "light-matter-basic",
|
||||
"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": "#f0eee6"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "landcover",
|
||||
"type": "fill",
|
||||
"source": "osm",
|
||||
"source-layer": "landcover",
|
||||
"paint": {
|
||||
"fill-color": [
|
||||
"match", ["get", "class"],
|
||||
"wood", "#c1d5ae",
|
||||
"forest", "#b8d1a6",
|
||||
"grass", "#dce7c9",
|
||||
"grassland", "#dce7c9",
|
||||
"scrub", "#d2dfb9",
|
||||
"heath", "#d8dfbf",
|
||||
"wetland", "#d4dfc3",
|
||||
"farmland", "#e8e2c9",
|
||||
"ice", "#f5f5f0",
|
||||
"#e8e5d9"
|
||||
],
|
||||
"fill-opacity": 0.8
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "landuse",
|
||||
"type": "fill",
|
||||
"source": "osm",
|
||||
"source-layer": "landuse",
|
||||
"paint": {
|
||||
"fill-color": [
|
||||
"match", ["get", "class"],
|
||||
"residential", "#e9e5dc",
|
||||
"commercial", "#eadfd5",
|
||||
"industrial", "#e4dfd9",
|
||||
"retail", "#eee0d7",
|
||||
"military", "#e6d9d0",
|
||||
"cemetery", "#d4dfc8",
|
||||
"allotments", "#d7e4c5",
|
||||
"farmland", "#e8e2c9",
|
||||
"farmyard", "#e8e2c9",
|
||||
"#e9e5dc"
|
||||
],
|
||||
"fill-opacity": 0.65
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "parks",
|
||||
"type": "fill",
|
||||
"source": "osm",
|
||||
"source-layer": "park",
|
||||
"paint": {
|
||||
"fill-color": "#c9dfb6",
|
||||
"fill-opacity": 0.85
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "water",
|
||||
"type": "fill",
|
||||
"source": "osm",
|
||||
"source-layer": "water",
|
||||
"paint": {
|
||||
"fill-color": "#a9d0e4"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "waterways",
|
||||
"type": "line",
|
||||
"source": "osm",
|
||||
"source-layer": "waterway",
|
||||
"minzoom": 5,
|
||||
"paint": {
|
||||
"line-color": "#91c5df",
|
||||
"line-width": [
|
||||
"interpolate", ["linear"], ["zoom"],
|
||||
5, 0.3,
|
||||
9, 0.7,
|
||||
13, 1.5,
|
||||
17, 4
|
||||
],
|
||||
"line-opacity": 0.9
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "contours-line",
|
||||
"type": "line",
|
||||
"source": "contours",
|
||||
"source-layer": "contour",
|
||||
"minzoom": 10,
|
||||
"paint": {
|
||||
"line-color": "#b5a48c",
|
||||
"line-opacity": [
|
||||
"interpolate", ["linear"], ["zoom"],
|
||||
10, 0.2,
|
||||
14, 0.55,
|
||||
18, 0.7
|
||||
],
|
||||
"line-width": [
|
||||
"interpolate", ["linear"], ["zoom"],
|
||||
10, 0.35,
|
||||
14, 0.8,
|
||||
18, 1.1
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"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": "#bdb4ac",
|
||||
"line-width": [
|
||||
"interpolate", ["linear"], ["zoom"],
|
||||
5, 0.35,
|
||||
9, 0.7,
|
||||
13, 1
|
||||
],
|
||||
"line-opacity": 0.75,
|
||||
"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": "#a69b92",
|
||||
"line-width": [
|
||||
"interpolate", ["linear"], ["zoom"],
|
||||
2, 0.4,
|
||||
5, 0.8,
|
||||
9, 1.4,
|
||||
13, 1.8
|
||||
],
|
||||
"line-opacity": 0.85,
|
||||
"line-dasharray": [3, 2]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "boundary-country",
|
||||
"type": "line",
|
||||
"source": "osm",
|
||||
"source-layer": "boundary",
|
||||
"filter": [
|
||||
"all",
|
||||
["==", "admin_level", 2],
|
||||
["!=", "maritime", 1]
|
||||
],
|
||||
"paint": {
|
||||
"line-color": "#8f8178",
|
||||
"line-width": [
|
||||
"interpolate", ["linear"], ["zoom"],
|
||||
0, 0.6,
|
||||
4, 1.2,
|
||||
7, 2,
|
||||
12, 2.5
|
||||
],
|
||||
"line-opacity": 0.9
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "aeroway",
|
||||
"type": "fill",
|
||||
"source": "osm",
|
||||
"source-layer": "aeroway",
|
||||
"minzoom": 10,
|
||||
"filter": [
|
||||
"in", "class", "runway", "taxiway"
|
||||
],
|
||||
"paint": {
|
||||
"fill-color": "#d0c9bd",
|
||||
"fill-outline-color": "#b4aa9c"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "roads-casing",
|
||||
"type": "line",
|
||||
"source": "osm",
|
||||
"source-layer": "transportation",
|
||||
"filter": [
|
||||
"in", "class",
|
||||
"motorway", "trunk", "primary",
|
||||
"secondary", "tertiary", "minor",
|
||||
"service", "residential"
|
||||
],
|
||||
"minzoom": 5,
|
||||
"layout": {
|
||||
"line-cap": "round",
|
||||
"line-join": "round"
|
||||
},
|
||||
"paint": {
|
||||
"line-color": "#d0c5b4",
|
||||
"line-width": [
|
||||
"interpolate", ["linear"], ["zoom"],
|
||||
5, 0.5,
|
||||
8, 1.2,
|
||||
12, 2.2,
|
||||
16, 6
|
||||
],
|
||||
"line-opacity": 0.9
|
||||
}
|
||||
},
|
||||
{
|
||||
"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": "#e8ad76",
|
||||
"line-width": [
|
||||
"interpolate", ["linear"], ["zoom"],
|
||||
5, 0.7,
|
||||
8, 1.5,
|
||||
12, 3,
|
||||
16, 6
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"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": "#f2d29a",
|
||||
"line-width": [
|
||||
"interpolate", ["linear"], ["zoom"],
|
||||
5, 0.5,
|
||||
8, 1.1,
|
||||
12, 2.4,
|
||||
16, 4.5
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "roads-tertiary",
|
||||
"type": "line",
|
||||
"source": "osm",
|
||||
"source-layer": "transportation",
|
||||
"filter": [
|
||||
"in", "class", "tertiary", "minor"
|
||||
],
|
||||
"minzoom": 7,
|
||||
"layout": {
|
||||
"line-cap": "round",
|
||||
"line-join": "round"
|
||||
},
|
||||
"paint": {
|
||||
"line-color": "#fffdf7",
|
||||
"line-width": [
|
||||
"interpolate", ["linear"], ["zoom"],
|
||||
7, 0.35,
|
||||
10, 0.8,
|
||||
14, 1.8,
|
||||
18, 3
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "roads-local",
|
||||
"type": "line",
|
||||
"source": "osm",
|
||||
"source-layer": "transportation",
|
||||
"filter": [
|
||||
"in", "class",
|
||||
"residential", "service", "living_street",
|
||||
"track", "path", "pedestrian", "footway",
|
||||
"cycleway", "bridleway", "steps"
|
||||
],
|
||||
"minzoom": 8,
|
||||
"layout": {
|
||||
"line-cap": "round",
|
||||
"line-join": "round"
|
||||
},
|
||||
"paint": {
|
||||
"line-color": "#fffdf7",
|
||||
"line-width": [
|
||||
"interpolate", ["linear"], ["zoom"],
|
||||
8, 0.3,
|
||||
11, 0.6,
|
||||
14, 1.2,
|
||||
18, 2.5
|
||||
],
|
||||
"line-opacity": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "railways",
|
||||
"type": "line",
|
||||
"source": "osm",
|
||||
"source-layer": "transportation",
|
||||
"filter": [
|
||||
"in", "class", "rail", "light_rail", "subway", "tram"
|
||||
],
|
||||
"minzoom": 8,
|
||||
"paint": {
|
||||
"line-color": "#9e91a6",
|
||||
"line-width": [
|
||||
"interpolate", ["linear"], ["zoom"],
|
||||
8, 0.4,
|
||||
12, 1,
|
||||
16, 2
|
||||
],
|
||||
"line-dasharray": [2, 1]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "buildings",
|
||||
"type": "fill",
|
||||
"source": "osm",
|
||||
"source-layer": "building",
|
||||
"minzoom": 13,
|
||||
"paint": {
|
||||
"fill-color": "#ded5c6",
|
||||
"fill-outline-color": "#c9bca9",
|
||||
"fill-opacity": [
|
||||
"interpolate", ["linear"], ["zoom"],
|
||||
13, 0.3,
|
||||
15, 0.9
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"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, 9,
|
||||
16, 12,
|
||||
20, 14
|
||||
],
|
||||
"text-max-angle": 30,
|
||||
"symbol-spacing": 250
|
||||
},
|
||||
"paint": {
|
||||
"text-color": "#655d53",
|
||||
"text-halo-color": "#f7f5ee",
|
||||
"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": "#786a82",
|
||||
"text-halo-color": "#f7f5ee",
|
||||
"text-halo-width": 1.2
|
||||
}
|
||||
},
|
||||
{
|
||||
"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": "#514a42",
|
||||
"text-halo-color": "#f7f5ee",
|
||||
"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": "#514a42",
|
||||
"text-halo-color": "#f7f5ee",
|
||||
"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": "#514a42",
|
||||
"text-halo-color": "#f7f5ee",
|
||||
"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": "#71685e",
|
||||
"text-halo-color": "#ffffff",
|
||||
"text-halo-width": 1
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user