Files
MapLibreParticleLab/metrics/integration/render-tests/text-size/composite-function/style.json
2023-03-25 14:46:49 +01:00

64 lines
1.3 KiB
JSON

{
"version": 8,
"metadata": {
"test": {
"width": 64,
"height": 64
}
},
"zoom": 0.5,
"sources": {
"geojson": {
"type": "geojson",
"data": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": { "x": 0 },
"geometry": {
"type": "Point",
"coordinates": [ -10, 0 ]
}
},
{
"type": "Feature",
"properties": { "x": 5 },
"geometry": {
"type": "Point",
"coordinates": [
10,
0
]
}
}
]
}
}
},
"glyphs": "local://glyphs/{fontstack}/{range}.pbf",
"layers": [
{
"id": "symbol",
"type": "symbol",
"source": "geojson",
"layout": {
"text-field": "A",
"text-font": [
"Open Sans Semibold",
"Arial Unicode MS Bold"
],
"text-size": {
"property": "x",
"stops": [
[ {"value": 0, "zoom": 0}, 10 ],
[ {"value": 10, "zoom": 0}, 20 ],
[ {"value": 0, "zoom": 1}, 14 ],
[ {"value": 10, "zoom": 1}, 28 ]
]
}
}
}
]
}