diff --git a/metrics/integration/render-tests/runtime-styling/filter-fill-extrusion/expected.png b/metrics/integration/render-tests/runtime-styling/filter-fill-extrusion/expected.png new file mode 100644 index 00000000000..5cbdf1425a2 Binary files /dev/null and b/metrics/integration/render-tests/runtime-styling/filter-fill-extrusion/expected.png differ diff --git a/metrics/integration/render-tests/runtime-styling/filter-fill-extrusion/style.json b/metrics/integration/render-tests/runtime-styling/filter-fill-extrusion/style.json new file mode 100644 index 00000000000..2f97fb2cdfb --- /dev/null +++ b/metrics/integration/render-tests/runtime-styling/filter-fill-extrusion/style.json @@ -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" + } + } + ] +} diff --git a/metrics/integration/render-tests/runtime-styling/filter-fill/expected.png b/metrics/integration/render-tests/runtime-styling/filter-fill/expected.png new file mode 100644 index 00000000000..5cbdf1425a2 Binary files /dev/null and b/metrics/integration/render-tests/runtime-styling/filter-fill/expected.png differ diff --git a/metrics/integration/render-tests/runtime-styling/filter-fill/style.json b/metrics/integration/render-tests/runtime-styling/filter-fill/style.json new file mode 100644 index 00000000000..c299f4ddad4 --- /dev/null +++ b/metrics/integration/render-tests/runtime-styling/filter-fill/style.json @@ -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" + } + } + ] +}