summaryrefslogtreecommitdiff
path: root/metrics/tests/location_indicator/query_test_no_image/style.json
diff options
context:
space:
mode:
authorGali Nelle <galinelle.mapbox@gmail.com>2020-04-15 18:15:29 +0300
committerGali Nelle <galinelle.mapbox@gmail.com>2020-04-17 19:08:43 +0300
commit33465df0002e2c61fe5c39d4aeb7a674ce0147da (patch)
tree335cdeb03d3b2edd06ed8465dcfbc9d11f5ee694 /metrics/tests/location_indicator/query_test_no_image/style.json
parentb190e12f5b565cd87ab528910bf9dcd7878596ec (diff)
downloadqtlocation-mapboxgl-upstream/galinelle_locationIndicatorPicking.tar.gz
Introduce a mean to add render features in layers with no sourcesupstream/galinelle_locationIndicatorPicking
This change also uses the support in the LocationIndicator layer, to return a point feature when queried in correspondence of the location indicator.
Diffstat (limited to 'metrics/tests/location_indicator/query_test_no_image/style.json')
-rw-r--r--metrics/tests/location_indicator/query_test_no_image/style.json65
1 files changed, 65 insertions, 0 deletions
diff --git a/metrics/tests/location_indicator/query_test_no_image/style.json b/metrics/tests/location_indicator/query_test_no_image/style.json
new file mode 100644
index 0000000000..684f5c597c
--- /dev/null
+++ b/metrics/tests/location_indicator/query_test_no_image/style.json
@@ -0,0 +1,65 @@
+{
+ "version": 8,
+ "metadata": {
+ "test": {
+ "width": 512,
+ "height": 256,
+ "operations": [
+ [
+ "addImage",
+ "puck_hat",
+ "puck_hat.png"
+ ],
+ [
+ "addImage",
+ "puck",
+ "puck.png"
+ ],
+ [
+ "addImage",
+ "puck_shadow",
+ "puck_shadow.png"
+ ]
+ ],
+ "queryGeometry": [
+ 256,
+ 128
+ ]
+ }
+ },
+ "center": [ 139.766707, 35.693055 ],
+ "zoom": 16,
+ "pitch" : 60,
+ "bearing" : 42,
+ "sources": {},
+ "layers": [
+ {
+ "id": "background",
+ "type": "background",
+ "paint": {
+ "background-color": "white"
+ }
+ },
+ {
+ "id": "puck123",
+ "type": "location-indicator",
+ "layout" : {
+ "top-image" : "puck_hat",
+ "shadow-image" : "puck_shadow"
+ },
+ "paint" : {
+ "bearing" : 45,
+ "perspective-compensation" : 1,
+ "image-tilt-displacement" : 0,
+ "location" : [ 35.693055, 139.766707, 0],
+ "accuracy-radius": 90.0,
+ "bearing-image-size" : 0.26,
+ "top-image-size" : 0.18,
+ "shadow-image-size" : 0.2,
+
+ "accuracy-radius-color": "rgba(255,0,0,0.2)",
+ "accuracy-radius-border-color": "rgba(255,0,255,0.6)"
+ }
+ }
+ ]
+}