Files
2026-11-21 11:19:58 -05:00

290 lines
5.9 KiB
JSON

{
"version": 8,
"name": "Satellite",
"id": "satellite",
"sources": {
"satellite": {
"type": "raster",
"url": "mbtiles://satellite"
},
"osm": {
"type": "vector",
"url": "mbtiles://osm"
}
},
"glyphs": "/fonts/{fontstack}/{range}.pbf",
"layers": [
{
"id": "satellite-raster",
"type": "raster",
"source": "satellite",
"paint": {
"raster-opacity": 1
}
},
{
"id": "roads-small",
"type": "line",
"source": "osm",
"source-layer": "transportation",
"filter": ["in", "class", "residential", "service", "track", "path"],
"minzoom": 5,
"paint": {
"line-color": "#ddd",
"line-width": [
"interpolate", ["linear"], ["zoom"],
5, 0.15,
7, 0.25,
12, 0.6,
16, 1
],
"line-opacity": [
"interpolate", ["linear"], ["zoom"],
5, 0.1,
7, 0.2,
12, 0.6
]
}
},
{
"id": "roads-local",
"type": "line",
"source": "osm",
"source-layer": "transportation",
"filter": ["==", "class", "minor"],
"minzoom": 6,
"paint": {
"line-color": "#ddd",
"line-width": [
"interpolate", ["linear"], ["zoom"],
6, 0.15,
8, 0.3,
12, 0.8,
16, 1.2
],
"line-opacity": [
"interpolate", ["linear"], ["zoom"],
6, 0.1,
8, 0.3,
12, 0.6
]
}
},
{
"id": "roads-primary",
"type": "line",
"source": "osm",
"source-layer": "transportation",
"filter": ["in", "class", "primary", "secondary"],
"minzoom": 7,
"paint": {
"line-color": "#eee",
"line-width": [
"interpolate", ["linear"], ["zoom"],
7, 0.3,
12, 1.5,
16, 3
]
}
},
{
"id": "roads-motorway",
"type": "line",
"source": "osm",
"source-layer": "transportation",
"filter": ["in", "class", "motorway", "trunk"],
"minzoom": 6,
"paint": {
"line-color": "#fff",
"line-width": [
"interpolate", ["linear"], ["zoom"],
6, 0.5,
10, 2,
14, 5
]
}
},
{
"id": "boundary-country",
"type": "line",
"source": "osm",
"source-layer": "boundary",
"filter": ["all", ["==", "admin_level", 2], ["!=", "maritime", 1]],
"paint": {
"line-color": "hsl(0, 0%, 60%)",
"line-width": [
"interpolate", ["linear"], ["zoom"],
0, 0.5,
4, 1.5,
6, 2
],
"line-opacity": 0.5
}
},
{
"id": "boundary-state",
"type": "line",
"source": "osm",
"source-layer": "boundary",
"filter": ["all", ["==", "admin_level", 4], ["!=", "maritime", 1]],
"minzoom": 2,
"paint": {
"line-color": "hsla(0, 0%, 60%, 0.5)",
"line-dasharray": [2, 1],
"line-width": [
"interpolate", ["linear"], ["zoom"],
2, 0.5,
5, 1,
8, 2
]
}
},
{
"id": "boundary-local",
"type": "line",
"source": "osm",
"source-layer": "boundary",
"filter": ["all", ["==", "admin_level", 6], ["!=", "maritime", 1]],
"minzoom": 6,
"paint": {
"line-color": "#bbbbbb",
"line-width": [
"interpolate", ["linear"], ["zoom"],
6, 0.5,
10, 1.2
],
"line-opacity": 0.5
}
},
{
"id": "buildings",
"type": "fill",
"source": "osm",
"source-layer": "building",
"minzoom": 14,
"paint": {
"fill-color": "rgba(222, 211, 190, 1)",
"fill-opacity": { "base": 1, "stops": [[13, 0], [15, 1]] }
}
},
{
"id": "house-numbers",
"type": "symbol",
"source": "osm",
"source-layer": "housenumber",
"minzoom": 15,
"layout": {
"text-field": "{housenumber}",
"text-font": ["Noto Sans Regular"],
"text-size": [
"interpolate", ["linear"], ["zoom"],
15, 10,
29, 14
]
},
"paint": {
"text-color": "rgba(100,100,100,0.75)",
"text-halo-color": "rgba(255,255,255,0.6)",
"text-halo-width": 1
}
},
{
"id": "road-labels",
"type": "symbol",
"source": "osm",
"source-layer": "transportation_name",
"minzoom": 13,
"layout": {
"symbol-placement": "line",
"text-field": ["coalesce", ["get", "name:en"], ["get", "name"]],
"text-font": ["Noto Sans Regular"],
"text-size": [
"interpolate", ["linear"], ["zoom"],
13, 10,
16, 14
]
},
"paint": {
"text-color": "#444",
"text-halo-color": "#ffffff",
"text-halo-width": 1
}
},
{
"id": "rail-labels",
"type": "symbol",
"source": "osm",
"source-layer": "transportation",
"filter": ["==", "class", "rail"],
"minzoom": 14,
"layout": {
"symbol-placement": "line",
"text-field": ["coalesce", ["get", "name:en"], ["get", "name"]],
"text-font": ["Noto Sans Regular"],
"text-size": 11
},
"paint": {
"text-color": "#444",
"text-halo-color": "rgba(255,255,255,0.6)",
"text-halo-width": 1
}
},
{
"id": "airport-labels",
"type": "symbol",
"source": "osm",
"source-layer": "aeroway",
"minzoom": 14,
"layout": {
"text-field": ["coalesce", ["get", "name:en"], ["get", "name"]],
"text-font": ["Noto Sans Regular"],
"text-size": 12
},
"paint": {
"text-color": "#444",
"text-halo-color": "rgba(255,255,255,0.6)",
"text-halo-width": 1
}
},
{
"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, 13
]
},
"paint": {
"text-color": "#444",
"text-halo-color": "rgba(255,255,255,0.6)",
"text-halo-width": 1
}
},
{
"id": "places",
"type": "symbol",
"source": "osm",
"source-layer": "place",
"minzoom": 2,
"filter": ["!=", "class", "continent"],
"layout": {
"text-size": 12,
"text-font": ["Noto Sans Regular"],
"text-field": ["coalesce", ["get", "name:en"], ["get", "name_en"], ["get", "name"]]
},
"paint": {
"text-color": "#444",
"text-halo-color": "#ffffff",
"text-halo-width": 2
}
}
]
}