diff --git a/test/integration/query-tests/line-width/multiple-features/expected.json b/test/integration/query-tests/line-width/multiple-features/expected.json new file mode 100644 index 00000000000..4ce10c7d33d --- /dev/null +++ b/test/integration/query-tests/line-width/multiple-features/expected.json @@ -0,0 +1,22 @@ +[ + { + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 0, + 0 + ], + [ + 50.009765625, + 0 + ] + ] + }, + "type": "Feature", + "properties": {}, + "id": 1, + "source": "mapbox", + "state": {} + } +] diff --git a/test/integration/query-tests/line-width/multiple-features/style.json b/test/integration/query-tests/line-width/multiple-features/style.json new file mode 100644 index 00000000000..7a94a9b9cfc --- /dev/null +++ b/test/integration/query-tests/line-width/multiple-features/style.json @@ -0,0 +1,54 @@ +{ + "version": 8, + "metadata": { + "test": { + "width": 64, + "height": 64, + "queryGeometry": [ + 45, + 16 + ] + } + }, + "sources": { + "mapbox": { + "type": "geojson", + "data": { + "type": "FeatureCollection", + "features": [ + { + "id": 1, + "type": "Feature", + "geometry": { + "type": "LineString", + "coordinates": [ + [ 0, 0], + [ 50, 0] + ] + } + } + ] + } + } + }, + "layers": [ + { + "id": "line", + "type": "line", + "source": "mapbox", + "paint": { + "line-width": 5 + } + }, + { + "id": "line2", + "type": "line", + "source": "mapbox", + "paint": { + "line-color": "white", + "line-width": 50, + "line-opacity": 0.3 + } + } + ] +}