Skip to content

Commit

Permalink
Add render test applying filter to fill extrustion
Browse files Browse the repository at this point in the history
  • Loading branch information
louwers committed Dec 9, 2024
1 parent 1b87543 commit ad691a3
Show file tree
Hide file tree
Showing 4 changed files with 111 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"version": 8,
"metadata": {
"test": {
"width": 64,
"height": 64,
"operations": [
["wait"],
["setFilter", "my-fill-layer", ["==", "property", "a"]],
["setFilter", "my-fill-layer", ["==", "property", "b"]],
["wait"]
]
}
},
"sources": {
"geojson": {
"type": "geojson",
"data": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"property": "b"
},
"geometry": {
"type": "Polygon",
"coordinates": [[[-5, -5], [-5, 5], [5, 5], [5, -5]]]
}
},
{
"type": "Feature",
"properties": {
"property": "a"
},
"geometry": {
"type": "Polygon",
"coordinates": [[[-10, -10], [-10, 10], [10, 10], [10, -10]]]
}
}
]
}
}
},
"layers": [
{
"id": "my-fill-layer",
"type": "fill-extrusion",
"source": "geojson",
"paint": {
"fill-extrusion-color": "blue"
}
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"version": 8,
"metadata": {
"test": {
"width": 64,
"height": 64,
"operations": [
["wait"],
["setFilter", "my-fill-layer", ["==", "property", "a"]],
["setFilter", "my-fill-layer", ["==", "property", "b"]],
["wait"]
]
}
},
"sources": {
"geojson": {
"type": "geojson",
"data": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"property": "b"
},
"geometry": {
"type": "Polygon",
"coordinates": [[[-5, -5], [-5, 5], [5, 5], [5, -5]]]
}
},
{
"type": "Feature",
"properties": {
"property": "a"
},
"geometry": {
"type": "Polygon",
"coordinates": [[[-10, -10], [-10, 10], [10, 10], [10, -10]]]
}
}
]
}
}
},
"layers": [
{
"id": "my-fill-layer",
"type": "fill",
"source": "geojson",
"paint": {
"fill-antialias": false,
"fill-color": "blue"
}
}
]
}

0 comments on commit ad691a3

Please sign in to comment.