diff --git a/test/integration/render-tests/icon-size/property-function-sdf/expected.png b/test/integration/render-tests/icon-size/property-function-sdf/expected.png new file mode 100644 index 00000000000..3a810a31c2b Binary files /dev/null and b/test/integration/render-tests/icon-size/property-function-sdf/expected.png differ diff --git a/test/integration/render-tests/icon-size/property-function-sdf/style.json b/test/integration/render-tests/icon-size/property-function-sdf/style.json new file mode 100644 index 00000000000..04565292d6d --- /dev/null +++ b/test/integration/render-tests/icon-size/property-function-sdf/style.json @@ -0,0 +1,66 @@ +{ + "version": 8, + "metadata": { + "test": { + "width": 64, + "height": 64 + } + }, + "sources": { + "geojson": { + "type": "geojson", + "data": { + "type": "FeatureCollection", + "features": [ + { + "type": "Feature", + "properties": { "x": 0 }, + "geometry": { + "type": "Point", + "coordinates": [ -10, 0 ] + } + }, + { + "type": "Feature", + "properties": { "x": 5 }, + "geometry": { + "type": "Point", + "coordinates": [ + 10, + 0 + ] + } + } + ] + } + } + }, + "glyphs": "local://glyphs/{fontstack}/{range}.pbf", + "sprite": "local://sprites/sprite", + "layers": [ + { + "id": "symbol", + "type": "symbol", + "source": "geojson", + "layout": { + "icon-size": { + "property": "x", + "stops": [ + [ + 0, + 1 + ], + [ + 10, + 2 + ] + ] + }, + "icon-image": "dot.sdf" + }, + "paint": { + "icon-color": "red" + } + } + ] +}