Files
2026-09-21 03:53:15 +03:00

111 lines
3.4 KiB
JSON

{
"version": 8,
"name": "Positron",
"metadata": { "tile-server:kind": "openmaptiles" },
"sources": {
"openmaptiles": { "type": "vector", "url": "{{tilejson}}" }
},
"glyphs": "https://demotiles.maplibre.org/font/{fontstack}/{range}.pbf",
"layers": [
{ "id": "background", "type": "background", "paint": { "background-color": "#f2f4f7" } },
{
"id": "landcover-wood",
"type": "fill",
"source": "openmaptiles",
"source-layer": "landcover",
"filter": ["in", "class", "wood", "grass"],
"paint": { "fill-color": "#e4eadc", "fill-opacity": 0.8 }
},
{
"id": "park",
"type": "fill",
"source": "openmaptiles",
"source-layer": "park",
"paint": { "fill-color": "#e6eedd" }
},
{
"id": "water",
"type": "fill",
"source": "openmaptiles",
"source-layer": "water",
"filter": ["==", "$type", "Polygon"],
"paint": { "fill-color": "#cddceb" }
},
{
"id": "waterway",
"type": "line",
"source": "openmaptiles",
"source-layer": "waterway",
"paint": { "line-color": "#cddceb", "line-width": { "stops": [[8, 0.5], [16, 3]] } }
},
{
"id": "building",
"type": "fill",
"source": "openmaptiles",
"source-layer": "building",
"minzoom": 13,
"paint": { "fill-color": "#e6e8ec", "fill-outline-color": "#d5d8de" }
},
{
"id": "road-minor",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"minzoom": 12,
"filter": ["in", "class", "minor", "service"],
"paint": { "line-color": "#ffffff", "line-width": { "stops": [[12, 0.6], [18, 7]] } }
},
{
"id": "road-secondary",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": ["in", "class", "primary", "secondary", "tertiary"],
"paint": { "line-color": "#ffffff", "line-width": { "stops": [[7, 0.8], [18, 12]] } }
},
{
"id": "road-motorway",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": ["in", "class", "motorway", "trunk"],
"paint": { "line-color": "#e6cfc0", "line-width": { "stops": [[5, 1], [18, 16]] } }
},
{
"id": "boundary",
"type": "line",
"source": "openmaptiles",
"source-layer": "boundary",
"filter": ["in", "admin_level", 2, 4],
"paint": { "line-color": "#b7bec8", "line-dasharray": [4, 2], "line-width": 1 }
},
{
"id": "road-name",
"type": "symbol",
"source": "openmaptiles",
"source-layer": "transportation_name",
"minzoom": 13,
"layout": {
"text-field": ["coalesce", ["get", "name"], ["get", "name:latin"]],
"text-font": ["Noto Sans Regular"],
"text-size": 11,
"symbol-placement": "line"
},
"paint": { "text-color": "#6b7380", "text-halo-color": "#ffffff", "text-halo-width": 1.2 }
},
{
"id": "place-city",
"type": "symbol",
"source": "openmaptiles",
"source-layer": "place",
"filter": ["in", "class", "city", "town"],
"layout": {
"text-field": ["coalesce", ["get", "name"], ["get", "name:latin"]],
"text-font": ["Noto Sans Bold"],
"text-size": { "stops": [[4, 11], [10, 16]] }
},
"paint": { "text-color": "#4a5160", "text-halo-color": "#ffffff", "text-halo-width": 1.6 }
}
]
}