summaryrefslogtreecommitdiff
path: root/metrics/tests/location_indicator/image_pixel_ratio/style.json
diff options
context:
space:
mode:
Diffstat (limited to 'metrics/tests/location_indicator/image_pixel_ratio/style.json')
-rw-r--r--metrics/tests/location_indicator/image_pixel_ratio/style.json98
1 files changed, 98 insertions, 0 deletions
diff --git a/metrics/tests/location_indicator/image_pixel_ratio/style.json b/metrics/tests/location_indicator/image_pixel_ratio/style.json
new file mode 100644
index 0000000000..4c52ef1ee0
--- /dev/null
+++ b/metrics/tests/location_indicator/image_pixel_ratio/style.json
@@ -0,0 +1,98 @@
+{
+ "version": 8,
+ "metadata": {
+ "test": {
+ "width": 512,
+ "height": 256,
+ "operations": [
+ [
+ "addImage",
+ "puck_hat@2x",
+ "puck_hat.png",
+ {"pixelRatio": 2.0}
+ ],
+ [
+ "addImage",
+ "puck@2x",
+ "puck.png",
+ {"pixelRatio": 2.0}
+
+ ],
+ [
+ "addImage",
+ "puck_shadow@2x",
+ "puck_shadow.png",
+ {"pixelRatio": 2.0}
+ ]
+ ]
+ }
+ },
+ "sources": {
+ "geojson": {
+ "type": "geojson",
+ "data": {
+ "type": "FeatureCollection",
+ "features": [
+ {
+ "type": "Feature",
+ "properties": {
+ },
+ "geometry": {
+ "type": "Point",
+ "coordinates": [
+ 139.766707,
+ 35.693055
+
+ ]
+ }
+ }
+ ]
+ }
+ }
+ },
+ "center": [ 139.766707, 35.693055 ],
+ "zoom": 16,
+ "pitch" : 0,
+ "bearing" : 42,
+ "sprite" : "local://sprites/emerald@2x",
+ "layers": [
+ {
+ "id": "background",
+ "type": "background",
+ "paint": {
+ "background-color": "lightseagreen"
+ }
+ },
+ {
+ "id": "puck123",
+ "type": "circle",
+ "source": "geojson",
+ "paint": {
+ "circle-radius": 40,
+ "circle-color" : "rgba(255,0,0,0.1)"
+ }
+ },
+ {
+ "id": "puck124",
+ "type": "location-indicator",
+ "layout" : {
+ "bearing-image" : "puck@2x",
+ "top-image" : "marker_icon",
+ "shadow-image" : "puck_shadow@2x"
+ },
+ "paint" : {
+ "bearing" : 45,
+ "perspective-compensation" : 1,
+ "image-tilt-displacement" : 6.5,
+ "location" : [ 35.693055, 139.766707, 0],
+ "accuracy-radius": 90.0,
+ "bearing-image-size" : 0.52,
+ "top-image-size" : 1,
+ "shadow-image-size" : 0.4,
+
+ "accuracy-radius-color": "rgba(255,0,0,0.2)",
+ "accuracy-radius-border-color": "rgba(255,0,255,0.6)"
+ }
+ }
+ ]
+}