diff --git a/test/integration/render-tests/icon-size/camera-function-upscale-rasterized/expected.png b/test/integration/render-tests/icon-size/camera-function-upscale-rasterized/expected.png new file mode 100644 index 00000000000..9ad528c09c1 Binary files /dev/null and b/test/integration/render-tests/icon-size/camera-function-upscale-rasterized/expected.png differ diff --git a/test/integration/render-tests/icon-size/camera-function-upscale-rasterized/style.json b/test/integration/render-tests/icon-size/camera-function-upscale-rasterized/style.json new file mode 100644 index 00000000000..30046527b43 --- /dev/null +++ b/test/integration/render-tests/icon-size/camera-function-upscale-rasterized/style.json @@ -0,0 +1,54 @@ +{ + "version": 8, + "metadata": { + "test": { + "width": 128, + "height": 128, + "spriteFormat": "icon_set" + } + }, + "zoom": 1.99, + "sources": { + "geojson": { + "type": "geojson", + "data": { + "type": "FeatureCollection", + "features": [ + { + "type": "Feature", + "geometry": { + "type": "Point", + "coordinates": [ 0, 0 ] + } + } + ] + } + } + }, + "glyphs": "local://glyphs/{fontstack}/{range}.pbf", + "sprite": "local://sprites/standard", + "layers": [ + { + "id": "back", + "type": "background", + "paint": { + "background-color": "black" + } + }, + { + "id": "symbol", + "type": "symbol", + "source": "geojson", + "layout": { + "icon-size": [ + "interpolate", + ["exponential", 2], + ["zoom"], + 1, 1, + 2, 4 + ], + "icon-image": "alcohol-shop" + } + } + ] +} diff --git a/test/integration/render-tests/icon-size/composite-function-both-scale-rasterized/expected.png b/test/integration/render-tests/icon-size/composite-function-both-scale-rasterized/expected.png new file mode 100644 index 00000000000..f778893f518 Binary files /dev/null and b/test/integration/render-tests/icon-size/composite-function-both-scale-rasterized/expected.png differ diff --git a/test/integration/render-tests/icon-size/composite-function-both-scale-rasterized/style.json b/test/integration/render-tests/icon-size/composite-function-both-scale-rasterized/style.json new file mode 100644 index 00000000000..1fdab7de8a1 --- /dev/null +++ b/test/integration/render-tests/icon-size/composite-function-both-scale-rasterized/style.json @@ -0,0 +1,69 @@ +{ + "version": 8, + "metadata": { + "test": { + "width": 128, + "height": 128, + "spriteFormat": "icon_set" + } + }, + "zoom": 1.69, + "sources": { + "geojson": { + "type": "geojson", + "data": { + "type": "FeatureCollection", + "features": [ + { + "type": "Feature", + "properties": { + "start": 0, + "stop": 1 + }, + "geometry": { + "type": "Point", + "coordinates": [-5, -5] + } + }, + { + "type": "Feature", + "properties": { + "start": 1, + "stop": 0 + }, + "geometry": { + "type": "Point", + "coordinates": [5, 5] + } + } + ] + } + } + }, + "glyphs": "local://glyphs/{fontstack}/{range}.pbf", + "sprite": "local://sprites/standard", + "layers": [ + { + "id": "back", + "type": "background", + "paint": { + "background-color": "black" + } + }, + { + "id": "symbol", + "type": "symbol", + "source": "geojson", + "layout": { + "icon-size": [ + "interpolate", + ["linear"], + ["zoom"], + 1, ["get", "start"], + 2, ["get", "stop"] + ], + "icon-image": "alcohol-shop" + } + } + ] +}