Files
MapLibreParticleLab/metrics/integration/render-tests/circle-sort-key/literal/style.json
2023-03-25 14:46:49 +01:00

82 lines
1.6 KiB
JSON

{
"version": 8,
"metadata": {
"test": {
"height": 64,
"width": 64,
"debug": true
}
},
"center": [0.5, 30],
"zoom": 1,
"sources": {
"geojson": {
"type": "geojson",
"data": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"sort-key": 1,
"color": "red",
"radius": 16
},
"geometry": {
"type": "Point",
"coordinates": [
2,
34
]
}
},
{
"type": "Feature",
"properties": {
"sort-key": 0,
"color": "blue",
"radius": 16
},
"geometry": {
"type": "Point",
"coordinates": [
2,
26
]
}
},
{
"type": "Feature",
"properties": {
"sort-key": 2,
"color": "green",
"radius": 16
},
"geometry": {
"type": "Point",
"coordinates": [
-2,
30
]
}
}
]
}
}
},
"layers": [
{
"id": "circle",
"type": "circle",
"source": "geojson",
"paint": {
"circle-radius": ["get", "radius"],
"circle-color": ["get", "color"]
},
"layout": {
"circle-sort-key": ["get", "sort-key"]
}
}
]
}