Files
MapLibreParticleLab/metrics/integration/render-tests/fill-pattern/update-feature-state/style.json
2023-03-25 14:46:49 +01:00

86 lines
1.8 KiB
JSON

{
"version": 8,
"metadata": {
"test": {
"width": 64,
"height": 64,
"operations": [
[
"setFeatureState",
{
"source": "geojson",
"id": "1"
},
{
"hover": true
}
],
[
"wait"
]
]
}
},
"sprite": "local://sprites/emerald",
"zoom": 1,
"sources": {
"geojson": {
"type": "geojson",
"data": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"id": 1,
"properties": {
"pattern": "generic_icon"
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-10,
-10
],
[
-10,
10
],
[
10,
10
],
[
10,
-10
],
[
-10,
-10
]
]
]
}
}
]
}
}
},
"layers": [
{
"id": "fill",
"type": "fill",
"source": "geojson",
"paint": {
"fill-pattern": [
"case",
["boolean", ["feature-state", "hover"], false],
"generic_icon",
"generic_metro"
]
}
}
]
}