371 lines
8.7 KiB
JSON
371 lines
8.7 KiB
JSON
{
|
|
"version": 8,
|
|
"name": "Smooth Light",
|
|
"sources": {
|
|
"osm": {
|
|
"type": "vector",
|
|
"tiles": ["https://tiles.zakscode.com/data/osm/{z}/{x}/{y}.pbf"],
|
|
"maxzoom": 14
|
|
}
|
|
},
|
|
"glyphs": "http://localhost:8080/fonts/{fontstack}/{range}.pbf",
|
|
"layers": [
|
|
{
|
|
"id": "background",
|
|
"type": "background",
|
|
"paint": { "background-color": "#f2efe9" }
|
|
},
|
|
{
|
|
"id": "water",
|
|
"type": "fill",
|
|
"source": "osm",
|
|
"source-layer": "water",
|
|
"paint": { "fill-color": "#c8d7d5" }
|
|
},
|
|
{
|
|
"id": "landcover-grass",
|
|
"type": "fill",
|
|
"source": "osm",
|
|
"source-layer": "landcover",
|
|
"filter": ["==", "class", "grass"],
|
|
"paint": { "fill-color": "#e0e8d8", "fill-opacity": 0.6 }
|
|
},
|
|
{
|
|
"id": "landcover-wood",
|
|
"type": "fill",
|
|
"source": "osm",
|
|
"source-layer": "landcover",
|
|
"filter": ["==", "class", "wood"],
|
|
"paint": { "fill-color": "#d4dfc4", "fill-opacity": 0.5 }
|
|
},
|
|
{
|
|
"id": "landuse-park",
|
|
"type": "fill",
|
|
"source": "osm",
|
|
"source-layer": "landuse",
|
|
"filter": ["==", "class", "park"],
|
|
"paint": { "fill-color": "#dce8d0", "fill-opacity": 0.7 }
|
|
},
|
|
{
|
|
"id": "landuse-cemetery",
|
|
"type": "fill",
|
|
"source": "osm",
|
|
"source-layer": "landuse",
|
|
"filter": ["==", "class", "cemetery"],
|
|
"paint": { "fill-color": "#e0e4dd", "fill-opacity": 0.7 }
|
|
},
|
|
{
|
|
"id": "landuse-hospital",
|
|
"type": "fill",
|
|
"source": "osm",
|
|
"source-layer": "landuse",
|
|
"filter": ["==", "class", "hospital"],
|
|
"paint": { "fill-color": "#f0e4e4", "fill-opacity": 0.6 }
|
|
},
|
|
{
|
|
"id": "landuse-school",
|
|
"type": "fill",
|
|
"source": "osm",
|
|
"source-layer": "landuse",
|
|
"filter": ["==", "class", "school"],
|
|
"paint": { "fill-color": "#eae0d8", "fill-opacity": 0.6 }
|
|
},
|
|
{
|
|
"id": "building",
|
|
"type": "fill",
|
|
"source": "osm",
|
|
"source-layer": "building",
|
|
"minzoom": 13,
|
|
"paint": {
|
|
"fill-color": "#dfdbd7",
|
|
"fill-opacity": { "stops": [[13, 0.3], [16, 0.6]] }
|
|
}
|
|
},
|
|
{
|
|
"id": "boundary-country",
|
|
"type": "line",
|
|
"source": "osm",
|
|
"source-layer": "boundary",
|
|
"filter": ["==", "admin_level", 2],
|
|
"paint": {
|
|
"line-color": "#c4b8aa",
|
|
"line-width": { "stops": [[2, 0.5], [6, 1.5], [10, 2.5]] }
|
|
}
|
|
},
|
|
{
|
|
"id": "boundary-state",
|
|
"type": "line",
|
|
"source": "osm",
|
|
"source-layer": "boundary",
|
|
"filter": ["==", "admin_level", 4],
|
|
"minzoom": 4,
|
|
"paint": {
|
|
"line-color": "#d0c8bc",
|
|
"line-width": { "stops": [[4, 0.3], [8, 1]] },
|
|
"line-dasharray": [3, 2]
|
|
}
|
|
},
|
|
{
|
|
"id": "waterway",
|
|
"type": "line",
|
|
"source": "osm",
|
|
"source-layer": "waterway",
|
|
"paint": {
|
|
"line-color": "#c8d7d5",
|
|
"line-width": { "stops": [[8, 0.5], [14, 2]] }
|
|
}
|
|
},
|
|
{
|
|
"id": "tunnel",
|
|
"type": "line",
|
|
"source": "osm",
|
|
"source-layer": "transportation",
|
|
"filter": ["all", ["==", "brunnel", "tunnel"], ["in", "class", "motorway", "trunk", "primary", "secondary", "tertiary"]],
|
|
"paint": {
|
|
"line-color": "#e8e4e0",
|
|
"line-width": { "stops": [[8, 0.5], [14, 4], [18, 10]] },
|
|
"line-dasharray": [3, 3]
|
|
}
|
|
},
|
|
{
|
|
"id": "road-motorway",
|
|
"type": "line",
|
|
"source": "osm",
|
|
"source-layer": "transportation",
|
|
"filter": ["all", ["==", "class", "motorway"], ["!=", "brunnel", "tunnel"]],
|
|
"paint": {
|
|
"line-color": "#e0d0b8",
|
|
"line-width": { "stops": [[5, 0.5], [10, 2], [14, 5], [18, 12]] }
|
|
}
|
|
},
|
|
{
|
|
"id": "road-trunk",
|
|
"type": "line",
|
|
"source": "osm",
|
|
"source-layer": "transportation",
|
|
"filter": ["all", ["==", "class", "trunk"], ["!=", "brunnel", "tunnel"]],
|
|
"paint": {
|
|
"line-color": "#e4d8c4",
|
|
"line-width": { "stops": [[6, 0.4], [10, 1.5], [14, 4], [18, 10]] }
|
|
}
|
|
},
|
|
{
|
|
"id": "road-primary",
|
|
"type": "line",
|
|
"source": "osm",
|
|
"source-layer": "transportation",
|
|
"filter": ["all", ["==", "class", "primary"], ["!=", "brunnel", "tunnel"]],
|
|
"paint": {
|
|
"line-color": "#e8dfd4",
|
|
"line-width": { "stops": [[7, 0.3], [10, 1], [14, 3.5], [18, 9]] }
|
|
}
|
|
},
|
|
{
|
|
"id": "road-secondary",
|
|
"type": "line",
|
|
"source": "osm",
|
|
"source-layer": "transportation",
|
|
"filter": ["all", ["==", "class", "secondary"], ["!=", "brunnel", "tunnel"]],
|
|
"paint": {
|
|
"line-color": "#ece6dc",
|
|
"line-width": { "stops": [[8, 0.3], [12, 1], [14, 3], [18, 7]] }
|
|
}
|
|
},
|
|
{
|
|
"id": "road-tertiary",
|
|
"type": "line",
|
|
"source": "osm",
|
|
"source-layer": "transportation",
|
|
"filter": ["all", ["==", "class", "tertiary"], ["!=", "brunnel", "tunnel"]],
|
|
"paint": {
|
|
"line-color": "#f0ebe4",
|
|
"line-width": { "stops": [[9, 0.2], [14, 2], [18, 5]] }
|
|
}
|
|
},
|
|
{
|
|
"id": "road-minor",
|
|
"type": "line",
|
|
"source": "osm",
|
|
"source-layer": "transportation",
|
|
"filter": ["all", ["in", "class", "minor", "service"], ["!=", "brunnel", "tunnel"]],
|
|
"minzoom": 12,
|
|
"paint": {
|
|
"line-color": "#f0ebe4",
|
|
"line-width": { "stops": [[12, 0.3], [16, 2], [18, 4]] }
|
|
}
|
|
},
|
|
{
|
|
"id": "road-path",
|
|
"type": "line",
|
|
"source": "osm",
|
|
"source-layer": "transportation",
|
|
"filter": ["==", "class", "path"],
|
|
"minzoom": 14,
|
|
"paint": {
|
|
"line-color": "#d8d0c4",
|
|
"line-width": 1,
|
|
"line-dasharray": [4, 2]
|
|
}
|
|
},
|
|
{
|
|
"id": "rail",
|
|
"type": "line",
|
|
"source": "osm",
|
|
"source-layer": "transportation",
|
|
"filter": ["==", "class", "rail"],
|
|
"minzoom": 10,
|
|
"paint": {
|
|
"line-color": "#d0ccc4",
|
|
"line-width": { "stops": [[10, 0.5], [14, 1.5]] },
|
|
"line-dasharray": [5, 5]
|
|
}
|
|
},
|
|
{
|
|
"id": "bridge",
|
|
"type": "line",
|
|
"source": "osm",
|
|
"source-layer": "transportation",
|
|
"filter": ["all", ["==", "brunnel", "bridge"], ["in", "class", "motorway", "trunk", "primary", "secondary", "tertiary"]],
|
|
"paint": {
|
|
"line-color": "#e0d8cc",
|
|
"line-width": { "stops": [[8, 0.5], [14, 4], [18, 10]] }
|
|
}
|
|
},
|
|
{
|
|
"id": "aero-runway",
|
|
"type": "line",
|
|
"source": "osm",
|
|
"source-layer": "aeroway",
|
|
"filter": ["==", "class", "runway"],
|
|
"minzoom": 11,
|
|
"paint": {
|
|
"line-color": "#d8d4cc",
|
|
"line-width": { "stops": [[11, 2], [16, 12]] }
|
|
}
|
|
},
|
|
{
|
|
"id": "aero-taxiway",
|
|
"type": "line",
|
|
"source": "osm",
|
|
"source-layer": "aeroway",
|
|
"filter": ["==", "class", "taxiway"],
|
|
"minzoom": 12,
|
|
"paint": {
|
|
"line-color": "#d8d4cc",
|
|
"line-width": { "stops": [[12, 0.5], [16, 4]] }
|
|
}
|
|
},
|
|
{
|
|
"id": "label-water",
|
|
"type": "symbol",
|
|
"source": "osm",
|
|
"source-layer": "water_name",
|
|
"layout": {
|
|
"text-field": "{name}",
|
|
"text-font": ["Noto Sans Regular"],
|
|
"text-size": { "stops": [[3, 10], [8, 14]] },
|
|
"text-letter-spacing": 0.1
|
|
},
|
|
"paint": {
|
|
"text-color": "#8aacaa",
|
|
"text-halo-color": "#f2efe9",
|
|
"text-halo-width": 1.5
|
|
}
|
|
},
|
|
{
|
|
"id": "label-road",
|
|
"type": "symbol",
|
|
"source": "osm",
|
|
"source-layer": "transportation_name",
|
|
"minzoom": 13,
|
|
"layout": {
|
|
"text-field": "{name}",
|
|
"text-font": ["Noto Sans Regular"],
|
|
"text-size": { "stops": [[13, 10], [16, 13]] },
|
|
"symbol-placement": "line",
|
|
"text-rotation-alignment": "map"
|
|
},
|
|
"paint": {
|
|
"text-color": "#9c9284",
|
|
"text-halo-color": "#f2efe9",
|
|
"text-halo-width": 1.5
|
|
}
|
|
},
|
|
{
|
|
"id": "label-place-city",
|
|
"type": "symbol",
|
|
"source": "osm",
|
|
"source-layer": "place",
|
|
"filter": ["==", "class", "city"],
|
|
"layout": {
|
|
"text-field": "{name}",
|
|
"text-font": ["Noto Sans Regular"],
|
|
"text-size": { "stops": [[4, 11], [8, 16], [12, 20]] },
|
|
"text-anchor": "center"
|
|
},
|
|
"paint": {
|
|
"text-color": "#6b6156",
|
|
"text-halo-color": "#f2efe9",
|
|
"text-halo-width": 2
|
|
}
|
|
},
|
|
{
|
|
"id": "label-place-town",
|
|
"type": "symbol",
|
|
"source": "osm",
|
|
"source-layer": "place",
|
|
"filter": ["==", "class", "town"],
|
|
"minzoom": 7,
|
|
"layout": {
|
|
"text-field": "{name}",
|
|
"text-font": ["Noto Sans Regular"],
|
|
"text-size": { "stops": [[7, 10], [12, 15]] },
|
|
"text-anchor": "center"
|
|
},
|
|
"paint": {
|
|
"text-color": "#7a7068",
|
|
"text-halo-color": "#f2efe9",
|
|
"text-halo-width": 1.5
|
|
}
|
|
},
|
|
{
|
|
"id": "label-place-village",
|
|
"type": "symbol",
|
|
"source": "osm",
|
|
"source-layer": "place",
|
|
"filter": ["==", "class", "village"],
|
|
"minzoom": 10,
|
|
"layout": {
|
|
"text-field": "{name}",
|
|
"text-font": ["Noto Sans Regular"],
|
|
"text-size": { "stops": [[10, 9], [14, 13]] },
|
|
"text-anchor": "center"
|
|
},
|
|
"paint": {
|
|
"text-color": "#8a8078",
|
|
"text-halo-color": "#f2efe9",
|
|
"text-halo-width": 1.5
|
|
}
|
|
},
|
|
{
|
|
"id": "label-country",
|
|
"type": "symbol",
|
|
"source": "osm",
|
|
"source-layer": "place",
|
|
"filter": ["==", "class", "country"],
|
|
"layout": {
|
|
"text-field": "{name}",
|
|
"text-font": ["Noto Sans Regular"],
|
|
"text-size": { "stops": [[2, 10], [5, 16]] },
|
|
"text-transform": "uppercase",
|
|
"text-letter-spacing": 0.15
|
|
},
|
|
"paint": {
|
|
"text-color": "#8a7e72",
|
|
"text-halo-color": "#f2efe9",
|
|
"text-halo-width": 2
|
|
}
|
|
}
|
|
]
|
|
}
|