diff options
author | Gali Nelle <galinelle.mapbox@gmail.com> | 2020-03-25 17:35:44 +0200 |
---|---|---|
committer | Gali Nelle <galinelle.mapbox@gmail.com> | 2020-03-31 23:56:59 +0300 |
commit | e12f3ddae9c4c0121e65dd580d8d880d5bbe6d17 (patch) | |
tree | 10a58e3f6b29312d92dc787a8ede52e38ecaf469 /metrics/tests/location_component/no_textures/style.json | |
parent | 349c6153de3c88f45b730be0d8ba9e2b14ab4d2a (diff) | |
download | qtlocation-mapboxgl-e12f3ddae9c4c0121e65dd580d8d880d5bbe6d17.tar.gz |
Add LocationComponentLayer
New key is "G" in mbgl-glfw, cycling between no puck, centered
in the viewport and positioned in Tokyo.
Diffstat (limited to 'metrics/tests/location_component/no_textures/style.json')
-rw-r--r-- | metrics/tests/location_component/no_textures/style.json | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/metrics/tests/location_component/no_textures/style.json b/metrics/tests/location_component/no_textures/style.json new file mode 100644 index 0000000000..49efafa4bf --- /dev/null +++ b/metrics/tests/location_component/no_textures/style.json @@ -0,0 +1,58 @@ +{ + "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" + ] + ] + } + }, + "center": [ 139.766707, 35.693055 ], + "zoom": 16, + "pitch" : 0, + "bearing" : 42, + "sources": {}, + "layers": [ + { + "id": "background", + "type": "background", + "paint": { + "background-color": "white" + } + }, + { + "id": "puck123", + "type": "location-component", + "layout" : { + "location" : [ 35.693055, 139.766707, 0], + "accuracy-radius": 90.0, + "bearing-image-size" : 48, + "top-image-size" : 16, + "shadow-image-size" : 112, + "bearing" : 45, + "perspective-compensation" : 1, + "image-tilt-displacement" : 5 + }, + "paint" : { + "accuracy-radius-color": "rgba(255,0,0,0.2)", + "accuracy-radius-border-color": "rgba(255,0,255,0.6)" + } + } + ] +} |