diff --git a/query-tests/circle-radius/property-function/expected.json b/query-tests/circle-radius/property-function/expected.json new file mode 100644 index 00000000..68c2da04 --- /dev/null +++ b/query-tests/circle-radius/property-function/expected.json @@ -0,0 +1,15 @@ +[ + { + "geometry": { + "type": "Point", + "coordinates": [ + 0, + 0 + ] + }, + "type": "Feature", + "properties": { + "radius": 20 + } + } +] \ No newline at end of file diff --git a/query-tests/circle-radius/property-function/style.json b/query-tests/circle-radius/property-function/style.json new file mode 100644 index 00000000..911c8b43 --- /dev/null +++ b/query-tests/circle-radius/property-function/style.json @@ -0,0 +1,48 @@ +{ + "version": 8, + "metadata": { + "test": { + "width": 64, + "height": 64, + "queryGeometry": [ + 32, + 32 + ], + "ignored": { + "js": "https://github.com/mapbox/mapbox-gl-js/issues/3604", + "native": "https://github.com/mapbox/mapbox-gl-native/issues/6518" + } + } + }, + "sources": { + "mapbox": { + "type": "geojson", + "data": { + "type": "Feature", + "properties": { + "radius": 20 + }, + "geometry": { + "type": "Point", + "coordinates": [ + 0, + 0 + ] + } + } + } + }, + "layers": [ + { + "id": "circle", + "type": "circle", + "source": "mapbox", + "paint": { + "circle-radius": { + "type": "identity", + "property": "radius" + } + } + } + ] +}