style: differentiate map test styles

This commit is contained in:
Conrad Schulz 2026-06-15 18:21:31 +00:00
parent 646ac23823
commit 4e616a7304
3 changed files with 168 additions and 166 deletions

View file

@ -1,90 +1,90 @@
{ {
"version": 8, "version": 8,
"name": "Europa Detail", "name": "Europa Detail",
"sources": { "sources": {
"openmaptiles": { "openmaptiles": {
"type": "vector", "type": "vector",
"url": "mbtiles://{osm-europe}" "url": "mbtiles://{osm-europe}"
} }
},
"glyphs": "/fonts/{fontstack}/{range}.pbf",
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": "#f7f5ee"
}
}, },
{ "glyphs": "/fonts/{fontstack}/{range}.pbf",
"id": "water", "layers": [
"type": "fill", {
"source": "openmaptiles", "id": "background",
"source-layer": "water", "type": "background",
"paint": { "paint": {
"fill-color": "#9ec9ff" "background-color": "#eef8e8"
} }
}, },
{ {
"id": "landuse", "id": "water",
"type": "fill", "type": "fill",
"source": "openmaptiles", "source": "openmaptiles",
"source-layer": "landuse", "source-layer": "water",
"paint": { "paint": {
"fill-color": "#d8e7cc", "fill-color": "#5ab4d6"
"fill-opacity": 0.7 }
} },
}, {
{ "id": "landuse",
"id": "roads-major", "type": "fill",
"type": "line", "source": "openmaptiles",
"source": "openmaptiles", "source-layer": "landuse",
"source-layer": "transportation", "paint": {
"filter": [ "fill-color": "#5fa65a",
"in", "fill-opacity": 0.85
"class", }
"motorway", },
"trunk", {
"primary" "id": "roads-major",
], "type": "line",
"paint": { "source": "openmaptiles",
"line-color": "#f7b267", "source-layer": "transportation",
"line-width": [ "filter": [
"interpolate", "in",
[ "class",
"linear" "motorway",
], "trunk",
[ "primary"
"zoom" ],
], "paint": {
5, "line-color": "#d94801",
0.5, "line-width": [
16, "interpolate",
3.5 [
] "linear"
} ],
}, [
{ "zoom"
"id": "roads-minor", ],
"type": "line", 5,
"source": "openmaptiles", 0.5,
"source-layer": "transportation", 16,
"paint": { 3.5
"line-color": "#ffffff", ]
"line-width": [ }
"interpolate", },
[ {
"linear" "id": "roads-minor",
], "type": "line",
[ "source": "openmaptiles",
"zoom" "source-layer": "transportation",
], "paint": {
8, "line-color": "#ffe082",
0.2, "line-width": [
16, "interpolate",
2.0 [
] "linear"
} ],
} [
] "zoom"
} ],
8,
0.2,
16,
2.0
]
}
}
]
}

View file

@ -1,21 +1,23 @@
{ {
"version": 8, "version": 8,
"name": "Satelite World", "name": "Satelite World",
"sources": { "sources": {
"satellite": { "satellite": {
"type": "raster", "type": "raster",
"url": "mbtiles://{satellite}", "url": "mbtiles://{satellite}",
"tileSize": 256 "tileSize": 256
} }
}, },
"layers": [ "layers": [
{ {
"id": "satellite-raster", "id": "satellite-raster",
"type": "raster", "type": "raster",
"source": "satellite", "source": "satellite",
"paint": { "paint": {
"raster-opacity": 1.0 "raster-opacity": 1.0,
} "raster-contrast": 0.25,
} "raster-saturation": 0.2
] }
} }
]
}

View file

@ -1,60 +1,60 @@
{ {
"version": 8, "version": 8,
"name": "World", "name": "World",
"sources": { "sources": {
"openmaptiles": { "openmaptiles": {
"type": "vector", "type": "vector",
"url": "mbtiles://{osm}" "url": "mbtiles://{osm}"
} }
},
"glyphs": "/fonts/{fontstack}/{range}.pbf",
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": "#f2efe9"
}
}, },
{ "glyphs": "/fonts/{fontstack}/{range}.pbf",
"id": "water", "layers": [
"type": "fill", {
"source": "openmaptiles", "id": "background",
"source-layer": "water", "type": "background",
"paint": { "paint": {
"fill-color": "#a9d3ff" "background-color": "#e7f0ff"
} }
}, },
{ {
"id": "landcover", "id": "water",
"type": "fill", "type": "fill",
"source": "openmaptiles", "source": "openmaptiles",
"source-layer": "landcover", "source-layer": "water",
"paint": { "paint": {
"fill-color": "#dcebcf" "fill-color": "#2f7ed8"
} }
}, },
{ {
"id": "roads", "id": "landcover",
"type": "line", "type": "fill",
"source": "openmaptiles", "source": "openmaptiles",
"source-layer": "transportation", "source-layer": "landcover",
"paint": { "paint": {
"line-color": "#ffffff", "fill-color": "#f6f1d3"
"line-width": [ }
"interpolate", },
[ {
"linear" "id": "roads",
], "type": "line",
[ "source": "openmaptiles",
"zoom" "source-layer": "transportation",
], "paint": {
5, "line-color": "#8c6d31",
0.3, "line-width": [
14, "interpolate",
2.0 [
] "linear"
} ],
} [
] "zoom"
} ],
5,
0.3,
14,
2.0
]
}
}
]
}