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

62 lines
1.1 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
]
}
}
]
}
}
},
"sprite": "local://sprites/sprite",
"layers": [
{
"id": "symbol",
"type": "symbol",
"source": "geojson",
"layout": {
"symbol-placement": "point",
"icon-image": "oneway",
"icon-rotate": {
"type": "identity",
"property": "rotate"
}
}
}
]
}