Files
MapLibreParticleLab/metrics/integration/render-tests/text-max-angle/literal/style.json

53 lines
973 B
JSON

{
"version": 8,
"metadata": {
"test": {
"height": 256
}
},
"center": [
13.418056,
52.499167
],
"zoom": 14,
"sources": {
"maplibre": {
"type": "vector",
"maxzoom": 14,
"tiles": [
"local://tiles/{z}-{x}-{y}.mvt"
]
}
},
"glyphs": "local://glyphs/{fontstack}/{range}.pbf",
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": "white"
}
},
{
"id": "literal",
"type": "symbol",
"source": "maplibre",
"source-layer": "road",
"layout": {
"symbol-placement": "line",
"text-allow-overlap": true,
"text-ignore-placement": true,
"text-field": "{class} {class}",
"text-font": [
"Open Sans Semibold",
"Arial Unicode MS Bold"
],
"text-max-angle": 60
},
"paint": {
"text-opacity": 1
}
}
]
}