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

65 lines
1.2 KiB
JSON

{
"version": 8,
"metadata": {
"test": {
"width": 64,
"height": 64
}
},
"sources": {
"geojson": {
"type": "geojson",
"data": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"rotate": 45
},
"geometry": {
"type": "Point",
"coordinates": [
-10,
0
]
}
},
{
"type": "Feature",
"properties": {
"rotate": 90
},
"geometry": {
"type": "Point",
"coordinates": [
10,
0
]
}
}
]
}
}
},
"glyphs": "local://glyphs/{fontstack}/{range}.pbf",
"layers": [
{
"id": "symbol",
"type": "symbol",
"source": "geojson",
"layout": {
"text-field": "T",
"text-font": [
"Open Sans Semibold",
"Arial Unicode MS Bold"
],
"text-rotate": {
"type": "identity",
"property": "rotate"
}
}
}
]
}