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

144 lines
2.8 KiB
JSON

{
"version": 8,
"metadata": {
"test": {
"width": 64,
"height": 64
}
},
"sources": {
"geojson": {
"type": "geojson",
"data": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"property": 0
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-12,
-12
],
[
-12,
12
],
[
-4,
12
],
[
-4,
-12
],
[
-12,
-12
]
]
]
}
},
{
"type": "Feature",
"properties": {
"property": 1
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-4,
-12
],
[
-4,
12
],
[
4,
12
],
[
4,
-12
],
[
-4,
-12
]
]
]
}
},
{
"type": "Feature",
"properties": {
"property": 2
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
4,
-12
],
[
4,
12
],
[
12,
12
],
[
12,
-12
],
[
4,
-12
]
]
]
}
}
]
}
}
},
"sprite": "local://sprites/emerald",
"layers": [
{
"id": "fill",
"type": "fill",
"source": "geojson",
"paint": {
"fill-antialias": false,
"fill-pattern": "generic_icon",
"fill-opacity": {
"property": "property",
"stops": [
[
0,
1
],
[
4,
0
]
]
}
}
}
]
}