Files
MapLibreParticleLab/metrics/integration/query-tests/circle-stroke-width/feature-state/style.json
Bart Louwers c79b6dcf52 Add end-of-file-fixer pre-commit hook (#3176)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-01-24 20:43:50 +01:00

74 lines
1.9 KiB
JSON

{
"version": 8,
"metadata": {
"test": {
"width": 64,
"height": 64,
"operations": [
[
"wait"
],
[
"setFeatureState",
{ "source": "mapbox", "id": 1},
{ "big": true }
],
[
"wait"
]
],
"queryGeometry": [
32,
16
]
}
},
"sources": {
"mapbox": {
"type": "geojson",
"data": {
"type": "FeatureCollection",
"features": [
{
"id": 1,
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
0,
0
]
}
},
{
"id": 2,
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
5,
15
]
}
}
]
}
}
},
"layers": [
{
"id": "circle",
"type": "circle",
"source": "mapbox",
"paint": {
"circle-radius": 3,
"circle-stroke-width": ["case",
["boolean", ["feature-state", "big"], false],
["number", 20],
["number", 3]
]
}
}
]
}