Files
MapLibreParticleLab/metrics/integration/query-tests/line-offset/pattern-feature-state/style.json
2023-03-25 14:46:49 +01:00

65 lines
1.6 KiB
JSON

{
"version": 8,
"metadata": {
"test": {
"width": 64,
"height": 64,
"operations": [
[
"wait"
],
[
"setFeatureState",
{ "source": "mapbox", "id": 1},
{ "big": true }
],
[
"wait"
]
],
"queryGeometry": [
32,
16
]
}
},
"sprite": "local://sprites/emerald",
"sources": {
"mapbox": {
"type": "geojson",
"data": {
"type": "FeatureCollection",
"features": [
{
"id": 1,
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[ 0, 0],
[ 5, 15]
]
}
}
]
}
}
},
"layers": [
{
"id": "line",
"type": "line",
"source": "mapbox",
"paint": {
"line-width": 12,
"line-pattern": "cemetery_icon",
"line-offset": ["case",
["boolean", ["feature-state", "big"], false],
["number", -5],
["number", 0]
]
}
}
]
}