55 lines
1.5 KiB
JSON
55 lines
1.5 KiB
JSON
{
|
|
"version": 8,
|
|
"name": "Transportationer (PMTiles)",
|
|
"comment": "Use this style when serving tiles locally from the tiles/ container. Update the pmtiles URL to match your region file.",
|
|
"sources": {
|
|
"protomaps": {
|
|
"type": "vector",
|
|
"url": "pmtiles://http://tiles:8080/region.pmtiles",
|
|
"attribution": "© <a href='https://www.openstreetmap.org/copyright'>OpenStreetMap</a> contributors"
|
|
}
|
|
},
|
|
"layers": [
|
|
{
|
|
"id": "background",
|
|
"type": "background",
|
|
"paint": { "background-color": "#f8f8f4" }
|
|
},
|
|
{
|
|
"id": "water",
|
|
"type": "fill",
|
|
"source": "protomaps",
|
|
"source-layer": "water",
|
|
"paint": { "fill-color": "#c9d9e5" }
|
|
},
|
|
{
|
|
"id": "roads",
|
|
"type": "line",
|
|
"source": "protomaps",
|
|
"source-layer": "roads",
|
|
"paint": { "line-color": "#ffffff", "line-width": 1 }
|
|
},
|
|
{
|
|
"id": "buildings",
|
|
"type": "fill",
|
|
"source": "protomaps",
|
|
"source-layer": "buildings",
|
|
"minzoom": 14,
|
|
"paint": { "fill-color": "#e8e4e0", "fill-opacity": 0.8 }
|
|
},
|
|
{
|
|
"id": "labels",
|
|
"type": "symbol",
|
|
"source": "protomaps",
|
|
"source-layer": "places",
|
|
"layout": {
|
|
"text-field": ["get", "name"],
|
|
"text-size": 12,
|
|
"text-font": ["Noto Sans Regular"]
|
|
},
|
|
"paint": { "text-color": "#555555" }
|
|
}
|
|
],
|
|
"glyphs": "https://fonts.openmaptiles.org/{fontstack}/{range}.pbf",
|
|
"sprite": ""
|
|
}
|