diff --git a/test/integration/render-tests/text-variable-anchor/all-anchors-text-allow-overlap/style.json b/test/integration/render-tests/text-variable-anchor/all-anchors-text-allow-overlap/style.json index 6bdd57cd681..f30d5cb54b6 100644 --- a/test/integration/render-tests/text-variable-anchor/all-anchors-text-allow-overlap/style.json +++ b/test/integration/render-tests/text-variable-anchor/all-anchors-text-allow-overlap/style.json @@ -2,7 +2,8 @@ "version": 8, "metadata": { "test": { - "height": 256 + "height": 256, + "allowed": 0.003 } }, "center": [ diff --git a/test/integration/render-tests/text-variable-anchor/text-allow-overlap/expected.png b/test/integration/render-tests/text-variable-anchor/text-allow-overlap/expected.png new file mode 100644 index 00000000000..2df9b51e027 Binary files /dev/null and b/test/integration/render-tests/text-variable-anchor/text-allow-overlap/expected.png differ diff --git a/test/integration/render-tests/text-variable-anchor/text-allow-overlap/style.json b/test/integration/render-tests/text-variable-anchor/text-allow-overlap/style.json new file mode 100644 index 00000000000..3fe9e73524a --- /dev/null +++ b/test/integration/render-tests/text-variable-anchor/text-allow-overlap/style.json @@ -0,0 +1,77 @@ +{ + "version": 8, + "metadata": { + "test": { + "height": 256, + "width": 256 + } + }, + "center": [ 0, 0 ], + "zoom": 0, + "sources": { + "point": { + "type": "geojson", + "data": { + "type": "FeatureCollection", + "features": [ + { + "type": "Feature", + "geometry": { + "type": "Point", + "coordinates": [ 0, 0 ] + } + }, + { + "type": "Feature", + "geometry": { + "type": "Point", + "coordinates": [ 0, 0 ] + } + }, + { + "type": "Feature", + "geometry": { + "type": "Point", + "coordinates": [ 0, 0 ] + } + }, + { + "type": "Feature", + "geometry": { + "type": "Point", + "coordinates": [ 0, 0 ] + } + } + ] + } + } + }, + "glyphs": "local://glyphs/{fontstack}/{range}.pbf", + "layers": [ + { + "id": "text", + "type": "symbol", + "source": "point", + "layout": { + "text-field": "x", + "text-size": 20, + "text-justify": "auto", + "text-allow-overlap": true, + "text-variable-anchor": ["left", "right", "top", "bottom"], + "text-radial-offset": 0.7, + "text-font": [ + "Open Sans Semibold", + "Arial Unicode MS Bold" + ] + } + }, + { + "id": "anchor", + "type": "circle", + "source": "point", + "paint" :{ + "circle-radius": 2 + } + } + ] +}