From 9a55c282fecfdd76b1acdf64cef0ce2ed99472ef Mon Sep 17 00:00:00 2001 From: Gali Nelle Date: Wed, 25 Mar 2020 17:35:44 +0200 Subject: Add LocationIndicatorLayer New key is "G" in mbgl-glfw, cycling between no puck, centered in the viewport and positioned in Tokyo. --- metrics/cache-metrics.db | Bin 397312 -> 401408 bytes .../location_indicator/dateline/metrics.json | 47 ++++++++++ .../location_indicator/default/metrics.json | 47 ++++++++++ .../no_radius_border/metrics.json | 47 ++++++++++ .../location_indicator/no_radius_fill/metrics.json | 47 ++++++++++ .../location_indicator/no_textures/metrics.json | 47 ++++++++++ .../location_indicator/one_texture/metrics.json | 47 ++++++++++ .../location_indicator/rotated/metrics.json | 47 ++++++++++ .../location_indicator/tilted/metrics.json | 47 ++++++++++ .../tilted_texture_shift/metrics.json | 47 ++++++++++ .../tilted_texture_shift_bottom_left/metrics.json | 47 ++++++++++ .../tilted_texture_shift_bottom_right/metrics.json | 47 ++++++++++ .../tilted_texture_shift_top_left/metrics.json | 47 ++++++++++ .../tilted_texture_shift_top_right/metrics.json | 47 ++++++++++ .../location_indicator/two_textures/metrics.json | 47 ++++++++++ .../tests/location_indicator/dateline/expected.png | Bin 0 -> 9307 bytes .../tests/location_indicator/dateline/style.json | 68 ++++++++++++++ .../tests/location_indicator/default/expected.png | Bin 0 -> 13669 bytes .../tests/location_indicator/default/style.json | 100 +++++++++++++++++++++ .../no_radius_border/expected.png | Bin 0 -> 9301 bytes .../location_indicator/no_radius_border/style.json | 68 ++++++++++++++ .../location_indicator/no_radius_fill/expected.png | Bin 0 -> 7625 bytes .../location_indicator/no_radius_fill/style.json | 68 ++++++++++++++ .../location_indicator/no_textures/expected.png | Bin 0 -> 2392 bytes .../location_indicator/no_textures/style.json | 65 ++++++++++++++ .../location_indicator/one_texture/expected.png | Bin 0 -> 3500 bytes .../location_indicator/one_texture/style.json | 66 ++++++++++++++ .../tests/location_indicator/rotated/expected.png | Bin 0 -> 9452 bytes .../tests/location_indicator/rotated/style.json | 68 ++++++++++++++ .../tests/location_indicator/tilted/expected.png | Bin 0 -> 5958 bytes metrics/tests/location_indicator/tilted/style.json | 68 ++++++++++++++ .../tilted_texture_shift/expected.png | Bin 0 -> 6502 bytes .../tilted_texture_shift/style.json | 68 ++++++++++++++ .../tilted_texture_shift_bottom_left/expected.png | Bin 0 -> 6396 bytes .../tilted_texture_shift_bottom_left/style.json | 69 ++++++++++++++ .../tilted_texture_shift_bottom_right/expected.png | Bin 0 -> 5996 bytes .../tilted_texture_shift_bottom_right/style.json | 68 ++++++++++++++ .../tilted_texture_shift_top_left/expected.png | Bin 0 -> 3327 bytes .../tilted_texture_shift_top_left/style.json | 68 ++++++++++++++ .../tilted_texture_shift_top_right/expected.png | Bin 0 -> 3238 bytes .../tilted_texture_shift_top_right/style.json | 68 ++++++++++++++ .../location_indicator/two_textures/expected.png | Bin 0 -> 8945 bytes .../location_indicator/two_textures/style.json | 67 ++++++++++++++ 43 files changed, 1637 insertions(+) create mode 100644 metrics/linux-gcc8-release/location_indicator/dateline/metrics.json create mode 100644 metrics/linux-gcc8-release/location_indicator/default/metrics.json create mode 100644 metrics/linux-gcc8-release/location_indicator/no_radius_border/metrics.json create mode 100644 metrics/linux-gcc8-release/location_indicator/no_radius_fill/metrics.json create mode 100644 metrics/linux-gcc8-release/location_indicator/no_textures/metrics.json create mode 100644 metrics/linux-gcc8-release/location_indicator/one_texture/metrics.json create mode 100644 metrics/linux-gcc8-release/location_indicator/rotated/metrics.json create mode 100644 metrics/linux-gcc8-release/location_indicator/tilted/metrics.json create mode 100644 metrics/linux-gcc8-release/location_indicator/tilted_texture_shift/metrics.json create mode 100644 metrics/linux-gcc8-release/location_indicator/tilted_texture_shift_bottom_left/metrics.json create mode 100644 metrics/linux-gcc8-release/location_indicator/tilted_texture_shift_bottom_right/metrics.json create mode 100644 metrics/linux-gcc8-release/location_indicator/tilted_texture_shift_top_left/metrics.json create mode 100644 metrics/linux-gcc8-release/location_indicator/tilted_texture_shift_top_right/metrics.json create mode 100644 metrics/linux-gcc8-release/location_indicator/two_textures/metrics.json create mode 100644 metrics/tests/location_indicator/dateline/expected.png create mode 100644 metrics/tests/location_indicator/dateline/style.json create mode 100644 metrics/tests/location_indicator/default/expected.png create mode 100644 metrics/tests/location_indicator/default/style.json create mode 100644 metrics/tests/location_indicator/no_radius_border/expected.png create mode 100644 metrics/tests/location_indicator/no_radius_border/style.json create mode 100644 metrics/tests/location_indicator/no_radius_fill/expected.png create mode 100644 metrics/tests/location_indicator/no_radius_fill/style.json create mode 100644 metrics/tests/location_indicator/no_textures/expected.png create mode 100644 metrics/tests/location_indicator/no_textures/style.json create mode 100644 metrics/tests/location_indicator/one_texture/expected.png create mode 100644 metrics/tests/location_indicator/one_texture/style.json create mode 100644 metrics/tests/location_indicator/rotated/expected.png create mode 100644 metrics/tests/location_indicator/rotated/style.json create mode 100644 metrics/tests/location_indicator/tilted/expected.png create mode 100644 metrics/tests/location_indicator/tilted/style.json create mode 100644 metrics/tests/location_indicator/tilted_texture_shift/expected.png create mode 100644 metrics/tests/location_indicator/tilted_texture_shift/style.json create mode 100644 metrics/tests/location_indicator/tilted_texture_shift_bottom_left/expected.png create mode 100644 metrics/tests/location_indicator/tilted_texture_shift_bottom_left/style.json create mode 100644 metrics/tests/location_indicator/tilted_texture_shift_bottom_right/expected.png create mode 100644 metrics/tests/location_indicator/tilted_texture_shift_bottom_right/style.json create mode 100644 metrics/tests/location_indicator/tilted_texture_shift_top_left/expected.png create mode 100644 metrics/tests/location_indicator/tilted_texture_shift_top_left/style.json create mode 100644 metrics/tests/location_indicator/tilted_texture_shift_top_right/expected.png create mode 100644 metrics/tests/location_indicator/tilted_texture_shift_top_right/style.json create mode 100644 metrics/tests/location_indicator/two_textures/expected.png create mode 100644 metrics/tests/location_indicator/two_textures/style.json (limited to 'metrics') diff --git a/metrics/cache-metrics.db b/metrics/cache-metrics.db index b52622fb7f..53ddff9bf6 100644 Binary files a/metrics/cache-metrics.db and b/metrics/cache-metrics.db differ diff --git a/metrics/linux-gcc8-release/location_indicator/dateline/metrics.json b/metrics/linux-gcc8-release/location_indicator/dateline/metrics.json new file mode 100644 index 0000000000..a8b686bab4 --- /dev/null +++ b/metrics/linux-gcc8-release/location_indicator/dateline/metrics.json @@ -0,0 +1,47 @@ +{ + "memory": [ + [ + "probeMemory - default - end", + 2030499, + 3176 + ], + [ + "probeMemory - default - start", + 0, + 0 + ] + ], + "network": [ + [ + "probeNetwork - default - end", + 3, + 40583 + ], + [ + "probeNetwork - default - start", + 0, + 0 + ] + ], + "gfx": [ + [ + "probeGFX - default - end", + 0, + 5, + 5, + 1, + [ + 65536, + 65536 + ], + [ + 22, + 22 + ], + [ + 64, + 64 + ] + ] + ] +} \ No newline at end of file diff --git a/metrics/linux-gcc8-release/location_indicator/default/metrics.json b/metrics/linux-gcc8-release/location_indicator/default/metrics.json new file mode 100644 index 0000000000..8805298d41 --- /dev/null +++ b/metrics/linux-gcc8-release/location_indicator/default/metrics.json @@ -0,0 +1,47 @@ +{ + "memory": [ + [ + "probeMemory - default - end", + 2246883, + 3913 + ], + [ + "probeMemory - default - start", + 0, + 0 + ] + ], + "network": [ + [ + "probeNetwork - default - end", + 3, + 40583 + ], + [ + "probeNetwork - default - start", + 0, + 0 + ] + ], + "gfx": [ + [ + "probeGFX - default - end", + 4, + 9, + 13, + 1, + [ + 131072, + 131072 + ], + [ + 70, + 70 + ], + [ + 128, + 128 + ] + ] + ] +} \ No newline at end of file diff --git a/metrics/linux-gcc8-release/location_indicator/no_radius_border/metrics.json b/metrics/linux-gcc8-release/location_indicator/no_radius_border/metrics.json new file mode 100644 index 0000000000..448a15c30f --- /dev/null +++ b/metrics/linux-gcc8-release/location_indicator/no_radius_border/metrics.json @@ -0,0 +1,47 @@ +{ + "memory": [ + [ + "probeMemory - default - end", + 2027964, + 3148 + ], + [ + "probeMemory - default - start", + 0, + 0 + ] + ], + "network": [ + [ + "probeNetwork - default - end", + 3, + 40583 + ], + [ + "probeNetwork - default - start", + 0, + 0 + ] + ], + "gfx": [ + [ + "probeGFX - default - end", + 0, + 5, + 5, + 1, + [ + 65536, + 65536 + ], + [ + 22, + 22 + ], + [ + 64, + 64 + ] + ] + ] +} \ No newline at end of file diff --git a/metrics/linux-gcc8-release/location_indicator/no_radius_fill/metrics.json b/metrics/linux-gcc8-release/location_indicator/no_radius_fill/metrics.json new file mode 100644 index 0000000000..adb9c3079f --- /dev/null +++ b/metrics/linux-gcc8-release/location_indicator/no_radius_fill/metrics.json @@ -0,0 +1,47 @@ +{ + "memory": [ + [ + "probeMemory - default - end", + 2026685, + 3230 + ], + [ + "probeMemory - default - start", + 0, + 0 + ] + ], + "network": [ + [ + "probeNetwork - default - end", + 3, + 40583 + ], + [ + "probeNetwork - default - start", + 0, + 0 + ] + ], + "gfx": [ + [ + "probeGFX - default - end", + 0, + 5, + 5, + 1, + [ + 65536, + 65536 + ], + [ + 22, + 22 + ], + [ + 64, + 64 + ] + ] + ] +} \ No newline at end of file diff --git a/metrics/linux-gcc8-release/location_indicator/no_textures/metrics.json b/metrics/linux-gcc8-release/location_indicator/no_textures/metrics.json new file mode 100644 index 0000000000..afa2b9cfa2 --- /dev/null +++ b/metrics/linux-gcc8-release/location_indicator/no_textures/metrics.json @@ -0,0 +1,47 @@ +{ + "memory": [ + [ + "probeMemory - default - end", + 2019537, + 2903 + ], + [ + "probeMemory - default - start", + 0, + 0 + ] + ], + "network": [ + [ + "probeNetwork - default - end", + 3, + 40583 + ], + [ + "probeNetwork - default - start", + 0, + 0 + ] + ], + "gfx": [ + [ + "probeGFX - default - end", + 0, + 5, + 5, + 1, + [ + 65536, + 65536 + ], + [ + 22, + 22 + ], + [ + 64, + 64 + ] + ] + ] +} \ No newline at end of file diff --git a/metrics/linux-gcc8-release/location_indicator/one_texture/metrics.json b/metrics/linux-gcc8-release/location_indicator/one_texture/metrics.json new file mode 100644 index 0000000000..1eff342890 --- /dev/null +++ b/metrics/linux-gcc8-release/location_indicator/one_texture/metrics.json @@ -0,0 +1,47 @@ +{ + "memory": [ + [ + "probeMemory - default - end", + 2016330, + 3092 + ], + [ + "probeMemory - default - start", + 0, + 0 + ] + ], + "network": [ + [ + "probeNetwork - default - end", + 3, + 40583 + ], + [ + "probeNetwork - default - start", + 0, + 0 + ] + ], + "gfx": [ + [ + "probeGFX - default - end", + 0, + 5, + 5, + 1, + [ + 65536, + 65536 + ], + [ + 22, + 22 + ], + [ + 64, + 64 + ] + ] + ] +} \ No newline at end of file diff --git a/metrics/linux-gcc8-release/location_indicator/rotated/metrics.json b/metrics/linux-gcc8-release/location_indicator/rotated/metrics.json new file mode 100644 index 0000000000..bc0d83fa42 --- /dev/null +++ b/metrics/linux-gcc8-release/location_indicator/rotated/metrics.json @@ -0,0 +1,47 @@ +{ + "memory": [ + [ + "probeMemory - default - end", + 2022474, + 3233 + ], + [ + "probeMemory - default - start", + 0, + 0 + ] + ], + "network": [ + [ + "probeNetwork - default - end", + 3, + 40583 + ], + [ + "probeNetwork - default - start", + 0, + 0 + ] + ], + "gfx": [ + [ + "probeGFX - default - end", + 0, + 5, + 5, + 1, + [ + 65536, + 65536 + ], + [ + 22, + 22 + ], + [ + 64, + 64 + ] + ] + ] +} \ No newline at end of file diff --git a/metrics/linux-gcc8-release/location_indicator/tilted/metrics.json b/metrics/linux-gcc8-release/location_indicator/tilted/metrics.json new file mode 100644 index 0000000000..50ce665ac8 --- /dev/null +++ b/metrics/linux-gcc8-release/location_indicator/tilted/metrics.json @@ -0,0 +1,47 @@ +{ + "memory": [ + [ + "probeMemory - default - end", + 2054777, + 3404 + ], + [ + "probeMemory - default - start", + 0, + 0 + ] + ], + "network": [ + [ + "probeNetwork - default - end", + 3, + 40583 + ], + [ + "probeNetwork - default - start", + 0, + 0 + ] + ], + "gfx": [ + [ + "probeGFX - default - end", + 0, + 9, + 5, + 1, + [ + 131072, + 131072 + ], + [ + 22, + 22 + ], + [ + 64, + 64 + ] + ] + ] +} \ No newline at end of file diff --git a/metrics/linux-gcc8-release/location_indicator/tilted_texture_shift/metrics.json b/metrics/linux-gcc8-release/location_indicator/tilted_texture_shift/metrics.json new file mode 100644 index 0000000000..1e8f85b822 --- /dev/null +++ b/metrics/linux-gcc8-release/location_indicator/tilted_texture_shift/metrics.json @@ -0,0 +1,47 @@ +{ + "memory": [ + [ + "probeMemory - default - end", + 2052965, + 3306 + ], + [ + "probeMemory - default - start", + 0, + 0 + ] + ], + "network": [ + [ + "probeNetwork - default - end", + 3, + 40583 + ], + [ + "probeNetwork - default - start", + 0, + 0 + ] + ], + "gfx": [ + [ + "probeGFX - default - end", + 0, + 8, + 5, + 1, + [ + 114688, + 114688 + ], + [ + 22, + 22 + ], + [ + 64, + 64 + ] + ] + ] +} \ No newline at end of file diff --git a/metrics/linux-gcc8-release/location_indicator/tilted_texture_shift_bottom_left/metrics.json b/metrics/linux-gcc8-release/location_indicator/tilted_texture_shift_bottom_left/metrics.json new file mode 100644 index 0000000000..5cca7b84a7 --- /dev/null +++ b/metrics/linux-gcc8-release/location_indicator/tilted_texture_shift_bottom_left/metrics.json @@ -0,0 +1,47 @@ +{ + "memory": [ + [ + "probeMemory - default - end", + 2050020, + 3367 + ], + [ + "probeMemory - default - start", + 0, + 0 + ] + ], + "network": [ + [ + "probeNetwork - default - end", + 3, + 40583 + ], + [ + "probeNetwork - default - start", + 0, + 0 + ] + ], + "gfx": [ + [ + "probeGFX - default - end", + 0, + 9, + 5, + 1, + [ + 131072, + 131072 + ], + [ + 22, + 22 + ], + [ + 64, + 64 + ] + ] + ] +} \ No newline at end of file diff --git a/metrics/linux-gcc8-release/location_indicator/tilted_texture_shift_bottom_right/metrics.json b/metrics/linux-gcc8-release/location_indicator/tilted_texture_shift_bottom_right/metrics.json new file mode 100644 index 0000000000..8a8d14205d --- /dev/null +++ b/metrics/linux-gcc8-release/location_indicator/tilted_texture_shift_bottom_right/metrics.json @@ -0,0 +1,47 @@ +{ + "memory": [ + [ + "probeMemory - default - end", + 2051851, + 3386 + ], + [ + "probeMemory - default - start", + 0, + 0 + ] + ], + "network": [ + [ + "probeNetwork - default - end", + 3, + 40583 + ], + [ + "probeNetwork - default - start", + 0, + 0 + ] + ], + "gfx": [ + [ + "probeGFX - default - end", + 0, + 8, + 5, + 1, + [ + 114688, + 114688 + ], + [ + 22, + 22 + ], + [ + 64, + 64 + ] + ] + ] +} \ No newline at end of file diff --git a/metrics/linux-gcc8-release/location_indicator/tilted_texture_shift_top_left/metrics.json b/metrics/linux-gcc8-release/location_indicator/tilted_texture_shift_top_left/metrics.json new file mode 100644 index 0000000000..555e5d633b --- /dev/null +++ b/metrics/linux-gcc8-release/location_indicator/tilted_texture_shift_top_left/metrics.json @@ -0,0 +1,47 @@ +{ + "memory": [ + [ + "probeMemory - default - end", + 2052276, + 3502 + ], + [ + "probeMemory - default - start", + 0, + 0 + ] + ], + "network": [ + [ + "probeNetwork - default - end", + 3, + 40583 + ], + [ + "probeNetwork - default - start", + 0, + 0 + ] + ], + "gfx": [ + [ + "probeGFX - default - end", + 0, + 9, + 5, + 1, + [ + 131072, + 131072 + ], + [ + 22, + 22 + ], + [ + 64, + 64 + ] + ] + ] +} \ No newline at end of file diff --git a/metrics/linux-gcc8-release/location_indicator/tilted_texture_shift_top_right/metrics.json b/metrics/linux-gcc8-release/location_indicator/tilted_texture_shift_top_right/metrics.json new file mode 100644 index 0000000000..79ad9f7fd2 --- /dev/null +++ b/metrics/linux-gcc8-release/location_indicator/tilted_texture_shift_top_right/metrics.json @@ -0,0 +1,47 @@ +{ + "memory": [ + [ + "probeMemory - default - end", + 2089360, + 3395 + ], + [ + "probeMemory - default - start", + 0, + 0 + ] + ], + "network": [ + [ + "probeNetwork - default - end", + 3, + 40583 + ], + [ + "probeNetwork - default - start", + 0, + 0 + ] + ], + "gfx": [ + [ + "probeGFX - default - end", + 0, + 9, + 5, + 1, + [ + 131072, + 131072 + ], + [ + 22, + 22 + ], + [ + 64, + 64 + ] + ] + ] +} \ No newline at end of file diff --git a/metrics/linux-gcc8-release/location_indicator/two_textures/metrics.json b/metrics/linux-gcc8-release/location_indicator/two_textures/metrics.json new file mode 100644 index 0000000000..b65a8f2a4c --- /dev/null +++ b/metrics/linux-gcc8-release/location_indicator/two_textures/metrics.json @@ -0,0 +1,47 @@ +{ + "memory": [ + [ + "probeMemory - default - end", + 2022280, + 3143 + ], + [ + "probeMemory - default - start", + 0, + 0 + ] + ], + "network": [ + [ + "probeNetwork - default - end", + 3, + 40583 + ], + [ + "probeNetwork - default - start", + 0, + 0 + ] + ], + "gfx": [ + [ + "probeGFX - default - end", + 0, + 5, + 5, + 1, + [ + 65536, + 65536 + ], + [ + 22, + 22 + ], + [ + 64, + 64 + ] + ] + ] +} \ No newline at end of file diff --git a/metrics/tests/location_indicator/dateline/expected.png b/metrics/tests/location_indicator/dateline/expected.png new file mode 100644 index 0000000000..8e1e2e95e9 Binary files /dev/null and b/metrics/tests/location_indicator/dateline/expected.png differ diff --git a/metrics/tests/location_indicator/dateline/style.json b/metrics/tests/location_indicator/dateline/style.json new file mode 100644 index 0000000000..410fc5c531 --- /dev/null +++ b/metrics/tests/location_indicator/dateline/style.json @@ -0,0 +1,68 @@ +{ + "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-indicator", + "layout" : { "bearing" : 45, + "bearing-image" : "puck", + "top-image" : "puck_hat", + "shadow-image" : "puck_shadow", + "perspective-compensation" : 1, + "image-tilt-displacement" : 5 + }, + "paint" : { + "accuracy-radius-transition": { "duration": 0, "delay": 0 }, + "bearing-image-size-transition": { "duration": 0, "delay": 0 }, + "top-image-size-transition": { "duration": 0, "delay": 0 }, + "shadow-image-size-transition": { "duration": 0, "delay": 0 }, + "accuracy-radius-color-transition": { "duration": 0, "delay": 0 }, + "accuracy-radius-border-color-transition": { "duration": 0, "delay": 0 }, + + "location" : [ 35.693055, 139.766707, 0], + "accuracy-radius": 90.0, + "bearing-image-size" : 48, + "top-image-size" : 16, + "shadow-image-size" : 112, + + "accuracy-radius-color": "rgba(255,0,0,0.2)", + "accuracy-radius-border-color": "rgba(255,0,255,0.6)" + } + } + ] +} diff --git a/metrics/tests/location_indicator/default/expected.png b/metrics/tests/location_indicator/default/expected.png new file mode 100644 index 0000000000..5823cce89e Binary files /dev/null and b/metrics/tests/location_indicator/default/expected.png differ diff --git a/metrics/tests/location_indicator/default/style.json b/metrics/tests/location_indicator/default/style.json new file mode 100644 index 0000000000..b0f58b4055 --- /dev/null +++ b/metrics/tests/location_indicator/default/style.json @@ -0,0 +1,100 @@ +{ + "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" + ] + ] + } + }, + "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, + "sources": {}, + "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" : 45, + "bearing-image" : "puck", + "top-image" : "puck_hat", + "shadow-image" : "puck_shadow", + "perspective-compensation" : 1, + "image-tilt-displacement" : 5 + }, + "paint" : { + "accuracy-radius-transition": { "duration": 0, "delay": 0 }, + "bearing-image-size-transition": { "duration": 0, "delay": 0 }, + "top-image-size-transition": { "duration": 0, "delay": 0 }, + "shadow-image-size-transition": { "duration": 0, "delay": 0 }, + "accuracy-radius-color-transition": { "duration": 0, "delay": 0 }, + "accuracy-radius-border-color-transition": { "duration": 0, "delay": 0 }, + + "location" : [ 35.693055, 139.766707, 0], + "accuracy-radius": 90.0, + "bearing-image-size" : 48, + "top-image-size" : 16, + "shadow-image-size" : 112, + + "accuracy-radius-color": "rgba(255,0,0,0.2)", + "accuracy-radius-border-color": "rgba(255,0,255,0.6)" + } + } + ] +} diff --git a/metrics/tests/location_indicator/no_radius_border/expected.png b/metrics/tests/location_indicator/no_radius_border/expected.png new file mode 100644 index 0000000000..436a27ed08 Binary files /dev/null and b/metrics/tests/location_indicator/no_radius_border/expected.png differ diff --git a/metrics/tests/location_indicator/no_radius_border/style.json b/metrics/tests/location_indicator/no_radius_border/style.json new file mode 100644 index 0000000000..922cd0c0f0 --- /dev/null +++ b/metrics/tests/location_indicator/no_radius_border/style.json @@ -0,0 +1,68 @@ +{ + "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": {}, + "sprite" : {}, + "layers": [ + { + "id": "background", + "type": "background", + "paint": { + "background-color": "white" + } + }, + { + "id": "puck123", + "type": "location-indicator", + "layout" : { "bearing" : 45, + "bearing-image" : "puck", + "top-image" : "puck_hat", + "shadow-image" : "puck_shadow", + "perspective-compensation" : 1, + "image-tilt-displacement" : 5 + }, + "paint" : { + "accuracy-radius-transition": { "duration": 0, "delay": 0 }, + "bearing-image-size-transition": { "duration": 0, "delay": 0 }, + "top-image-size-transition": { "duration": 0, "delay": 0 }, + "shadow-image-size-transition": { "duration": 0, "delay": 0 }, + "accuracy-radius-color-transition": { "duration": 0, "delay": 0 }, + "accuracy-radius-border-color-transition": { "duration": 0, "delay": 0 }, + + "location" : [ 35.693055, 139.766707, 0], + "accuracy-radius": 90.0, + "bearing-image-size" : 48, + "top-image-size" : 16, + "shadow-image-size" : 112, + + "accuracy-radius-color": "rgba(255,0,0,0.2)" + } + } + ] +} diff --git a/metrics/tests/location_indicator/no_radius_fill/expected.png b/metrics/tests/location_indicator/no_radius_fill/expected.png new file mode 100644 index 0000000000..447546c880 Binary files /dev/null and b/metrics/tests/location_indicator/no_radius_fill/expected.png differ diff --git a/metrics/tests/location_indicator/no_radius_fill/style.json b/metrics/tests/location_indicator/no_radius_fill/style.json new file mode 100644 index 0000000000..a01ee0c576 --- /dev/null +++ b/metrics/tests/location_indicator/no_radius_fill/style.json @@ -0,0 +1,68 @@ +{ + "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-indicator", + "layout" : { "bearing" : 45, + "bearing-image" : "puck", + "top-image" : "puck_hat", + "shadow-image" : "puck_shadow", + "perspective-compensation" : 1, + "image-tilt-displacement" : 5 + }, + "paint" : { + "accuracy-radius-transition": { "duration": 0, "delay": 0 }, + "bearing-image-size-transition": { "duration": 0, "delay": 0 }, + "top-image-size-transition": { "duration": 0, "delay": 0 }, + "shadow-image-size-transition": { "duration": 0, "delay": 0 }, + + "accuracy-radius-color-transition": { "duration": 0, "delay": 0 }, + "accuracy-radius-border-color-transition": { "duration": 0, "delay": 0 }, + + "location" : [ 35.693055, 139.766707, 0], + "accuracy-radius": 90.0, + "bearing-image-size" : 48, + "top-image-size" : 16, + "shadow-image-size" : 112, + + "accuracy-radius-border-color": "rgba(255,0,255,0.6)" + } + } + ] +} diff --git a/metrics/tests/location_indicator/no_textures/expected.png b/metrics/tests/location_indicator/no_textures/expected.png new file mode 100644 index 0000000000..8ac31bf4df Binary files /dev/null and b/metrics/tests/location_indicator/no_textures/expected.png differ diff --git a/metrics/tests/location_indicator/no_textures/style.json b/metrics/tests/location_indicator/no_textures/style.json new file mode 100644 index 0000000000..1cae891f77 --- /dev/null +++ b/metrics/tests/location_indicator/no_textures/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" + ] + ] + } + }, + "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-indicator", + "layout" : { "bearing" : 45, + "perspective-compensation" : 1, + "image-tilt-displacement" : 5 + }, + "paint" : { + "accuracy-radius-transition": { "duration": 0, "delay": 0 }, + "bearing-image-size-transition": { "duration": 0, "delay": 0 }, + "top-image-size-transition": { "duration": 0, "delay": 0 }, + "shadow-image-size-transition": { "duration": 0, "delay": 0 }, + "accuracy-radius-color-transition": { "duration": 0, "delay": 0 }, + "accuracy-radius-border-color-transition": { "duration": 0, "delay": 0 }, + + "location" : [ 35.693055, 139.766707, 0], + "accuracy-radius": 90.0, + "bearing-image-size" : 48, + "top-image-size" : 16, + "shadow-image-size" : 112, + + "accuracy-radius-color": "rgba(255,0,0,0.2)", + "accuracy-radius-border-color": "rgba(255,0,255,0.6)" + } + } + ] +} diff --git a/metrics/tests/location_indicator/one_texture/expected.png b/metrics/tests/location_indicator/one_texture/expected.png new file mode 100644 index 0000000000..c0fb9ce580 Binary files /dev/null and b/metrics/tests/location_indicator/one_texture/expected.png differ diff --git a/metrics/tests/location_indicator/one_texture/style.json b/metrics/tests/location_indicator/one_texture/style.json new file mode 100644 index 0000000000..f44b698c05 --- /dev/null +++ b/metrics/tests/location_indicator/one_texture/style.json @@ -0,0 +1,66 @@ +{ + "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-indicator", + "layout" : { "bearing" : 45, + "bearing-image" : "puck", + "perspective-compensation" : 1, + "image-tilt-displacement" : 5 + }, + "paint" : { + "accuracy-radius-transition": { "duration": 0, "delay": 0 }, + "bearing-image-size-transition": { "duration": 0, "delay": 0 }, + "top-image-size-transition": { "duration": 0, "delay": 0 }, + "shadow-image-size-transition": { "duration": 0, "delay": 0 }, + "accuracy-radius-color-transition": { "duration": 0, "delay": 0 }, + "accuracy-radius-border-color-transition": { "duration": 0, "delay": 0 }, + + "location" : [ 35.693055, 139.766707, 0], + "accuracy-radius": 90.0, + "bearing-image-size" : 48, + "top-image-size" : 16, + "shadow-image-size" : 112, + + "accuracy-radius-color": "rgba(255,0,0,0.2)", + "accuracy-radius-border-color": "rgba(255,0,255,0.6)" + } + } + ] +} diff --git a/metrics/tests/location_indicator/rotated/expected.png b/metrics/tests/location_indicator/rotated/expected.png new file mode 100644 index 0000000000..4b481b12d5 Binary files /dev/null and b/metrics/tests/location_indicator/rotated/expected.png differ diff --git a/metrics/tests/location_indicator/rotated/style.json b/metrics/tests/location_indicator/rotated/style.json new file mode 100644 index 0000000000..5a75f56e22 --- /dev/null +++ b/metrics/tests/location_indicator/rotated/style.json @@ -0,0 +1,68 @@ +{ + "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-indicator", + "layout" : { "bearing" : 0, + "bearing-image" : "puck", + "top-image" : "puck_hat", + "shadow-image" : "puck_shadow", + "perspective-compensation" : 1, + "image-tilt-displacement" : 5 + }, + "paint" : { + "accuracy-radius-transition": { "duration": 0, "delay": 0 }, + "bearing-image-size-transition": { "duration": 0, "delay": 0 }, + "top-image-size-transition": { "duration": 0, "delay": 0 }, + "shadow-image-size-transition": { "duration": 0, "delay": 0 }, + "accuracy-radius-color-transition": { "duration": 0, "delay": 0 }, + "accuracy-radius-border-color-transition": { "duration": 0, "delay": 0 }, + + "location" : [ 35.693055, 139.766707, 0], + "accuracy-radius": 90.0, + "bearing-image-size" : 48, + "top-image-size" : 16, + "shadow-image-size" : 112, + + "accuracy-radius-color": "rgba(255,0,0,0.2)", + "accuracy-radius-border-color": "rgba(255,0,255,0.6)" + } + } + ] +} diff --git a/metrics/tests/location_indicator/tilted/expected.png b/metrics/tests/location_indicator/tilted/expected.png new file mode 100644 index 0000000000..624be49df3 Binary files /dev/null and b/metrics/tests/location_indicator/tilted/expected.png differ diff --git a/metrics/tests/location_indicator/tilted/style.json b/metrics/tests/location_indicator/tilted/style.json new file mode 100644 index 0000000000..9dfe1033ff --- /dev/null +++ b/metrics/tests/location_indicator/tilted/style.json @@ -0,0 +1,68 @@ +{ + "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" : 60, + "bearing" : 42, + "sources": {}, + "layers": [ + { + "id": "background", + "type": "background", + "paint": { + "background-color": "white" + } + }, + { + "id": "puck123", + "type": "location-indicator", + "layout" : { "bearing" : 45, + "bearing-image" : "puck", + "top-image" : "puck_hat", + "shadow-image" : "puck_shadow", + "perspective-compensation" : 1, + "image-tilt-displacement" : 0 + }, + "paint" : { + "accuracy-radius-transition": { "duration": 0, "delay": 0 }, + "bearing-image-size-transition": { "duration": 0, "delay": 0 }, + "top-image-size-transition": { "duration": 0, "delay": 0 }, + "shadow-image-size-transition": { "duration": 0, "delay": 0 }, + "accuracy-radius-color-transition": { "duration": 0, "delay": 0 }, + "accuracy-radius-border-color-transition": { "duration": 0, "delay": 0 }, + + "location" : [ 35.693055, 139.766707, 0], + "accuracy-radius": 90.0, + "bearing-image-size" : 48, + "top-image-size" : 16, + "shadow-image-size" : 112, + + "accuracy-radius-color": "rgba(255,0,0,0.2)", + "accuracy-radius-border-color": "rgba(255,0,255,0.6)" + } + } + ] +} diff --git a/metrics/tests/location_indicator/tilted_texture_shift/expected.png b/metrics/tests/location_indicator/tilted_texture_shift/expected.png new file mode 100644 index 0000000000..0a4baa1b58 Binary files /dev/null and b/metrics/tests/location_indicator/tilted_texture_shift/expected.png differ diff --git a/metrics/tests/location_indicator/tilted_texture_shift/style.json b/metrics/tests/location_indicator/tilted_texture_shift/style.json new file mode 100644 index 0000000000..6b6372ae1d --- /dev/null +++ b/metrics/tests/location_indicator/tilted_texture_shift/style.json @@ -0,0 +1,68 @@ +{ + "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" : 55, + "bearing" : 42, + "sources": {}, + "layers": [ + { + "id": "background", + "type": "background", + "paint": { + "background-color": "white" + } + }, + { + "id": "puck123", + "type": "location-indicator", + "layout" : { "bearing" : 45, + "bearing-image" : "puck", + "top-image" : "puck_hat", + "shadow-image" : "puck_shadow", + "perspective-compensation" : 1, + "image-tilt-displacement" : 5 + }, + "paint" : { + "accuracy-radius-transition": { "duration": 0, "delay": 0 }, + "bearing-image-size-transition": { "duration": 0, "delay": 0 }, + "top-image-size-transition": { "duration": 0, "delay": 0 }, + "shadow-image-size-transition": { "duration": 0, "delay": 0 }, + "accuracy-radius-color-transition": { "duration": 0, "delay": 0 }, + "accuracy-radius-border-color-transition": { "duration": 0, "delay": 0 }, + + "location" : [ 35.693055, 139.766707, 0], + "accuracy-radius": 90.0, + "bearing-image-size" : 48, + "top-image-size" : 16, + "shadow-image-size" : 112, + + "accuracy-radius-color": "rgba(255,0,0,0.2)", + "accuracy-radius-border-color": "rgba(255,0,255,0.6)" + } + } + ] +} diff --git a/metrics/tests/location_indicator/tilted_texture_shift_bottom_left/expected.png b/metrics/tests/location_indicator/tilted_texture_shift_bottom_left/expected.png new file mode 100644 index 0000000000..a651914b09 Binary files /dev/null and b/metrics/tests/location_indicator/tilted_texture_shift_bottom_left/expected.png differ diff --git a/metrics/tests/location_indicator/tilted_texture_shift_bottom_left/style.json b/metrics/tests/location_indicator/tilted_texture_shift_bottom_left/style.json new file mode 100644 index 0000000000..1d5bb8ae6f --- /dev/null +++ b/metrics/tests/location_indicator/tilted_texture_shift_bottom_left/style.json @@ -0,0 +1,69 @@ +{ + "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.768885, 35.693125 ], + "zoom": 16, + "pitch" : 60, + "bearing" : 42, + "sources": {}, + + "layers": [ + { + "id": "background", + "type": "background", + "paint": { + "background-color": "white" + } + }, + { + "id": "puck123", + "type": "location-indicator", + "layout" : { "bearing" : 45, + "bearing-image" : "puck", + "top-image" : "puck_hat", + "shadow-image" : "puck_shadow", + "perspective-compensation" : 1, + "image-tilt-displacement" : 5 + }, + "paint" : { + "accuracy-radius-transition": { "duration": 0, "delay": 0 }, + "bearing-image-size-transition": { "duration": 0, "delay": 0 }, + "top-image-size-transition": { "duration": 0, "delay": 0 }, + "shadow-image-size-transition": { "duration": 0, "delay": 0 }, + "accuracy-radius-color-transition": { "duration": 0, "delay": 0 }, + "accuracy-radius-border-color-transition": { "duration": 0, "delay": 0 }, + + "location" : [ 35.693055, 139.766707, 0], + "accuracy-radius": 90.0, + "bearing-image-size" : 48, + "top-image-size" : 16, + "shadow-image-size" : 112, + + "accuracy-radius-color": "rgba(255,0,0,0.2)", + "accuracy-radius-border-color": "rgba(255,0,255,0.6)" + } + } + ] +} diff --git a/metrics/tests/location_indicator/tilted_texture_shift_bottom_right/expected.png b/metrics/tests/location_indicator/tilted_texture_shift_bottom_right/expected.png new file mode 100644 index 0000000000..d0839ea66f Binary files /dev/null and b/metrics/tests/location_indicator/tilted_texture_shift_bottom_right/expected.png differ diff --git a/metrics/tests/location_indicator/tilted_texture_shift_bottom_right/style.json b/metrics/tests/location_indicator/tilted_texture_shift_bottom_right/style.json new file mode 100644 index 0000000000..611bea2a98 --- /dev/null +++ b/metrics/tests/location_indicator/tilted_texture_shift_bottom_right/style.json @@ -0,0 +1,68 @@ +{ + "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.766487, 35.694867 ], + "zoom": 16, + "pitch" : 60, + "bearing" : 42, + "sources": {}, + "layers": [ + { + "id": "background", + "type": "background", + "paint": { + "background-color": "white" + } + }, + { + "id": "puck123", + "type": "location-indicator", + "layout" : { "bearing" : 45, + "bearing-image" : "puck", + "top-image" : "puck_hat", + "shadow-image" : "puck_shadow", + "perspective-compensation" : 1, + "image-tilt-displacement" : 5 + }, + "paint" : { + "accuracy-radius-transition": { "duration": 0, "delay": 0 }, + "bearing-image-size-transition": { "duration": 0, "delay": 0 }, + "top-image-size-transition": { "duration": 0, "delay": 0 }, + "shadow-image-size-transition": { "duration": 0, "delay": 0 }, + "accuracy-radius-color-transition": { "duration": 0, "delay": 0 }, + "accuracy-radius-border-color-transition": { "duration": 0, "delay": 0 }, + + "location" : [ 35.693055, 139.766707, 0], + "accuracy-radius": 90.0, + "bearing-image-size" : 48, + "top-image-size" : 16, + "shadow-image-size" : 112, + + "accuracy-radius-color": "rgba(255,0,0,0.2)", + "accuracy-radius-border-color": "rgba(255,0,255,0.6)" + } + } + ] +} diff --git a/metrics/tests/location_indicator/tilted_texture_shift_top_left/expected.png b/metrics/tests/location_indicator/tilted_texture_shift_top_left/expected.png new file mode 100644 index 0000000000..48747eb194 Binary files /dev/null and b/metrics/tests/location_indicator/tilted_texture_shift_top_left/expected.png differ diff --git a/metrics/tests/location_indicator/tilted_texture_shift_top_left/style.json b/metrics/tests/location_indicator/tilted_texture_shift_top_left/style.json new file mode 100644 index 0000000000..00899046d6 --- /dev/null +++ b/metrics/tests/location_indicator/tilted_texture_shift_top_left/style.json @@ -0,0 +1,68 @@ +{ + "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.766972, 35.687286 ], + "zoom": 16, + "pitch" : 60, + "bearing" : 42, + "sources": {}, + "layers": [ + { + "id": "background", + "type": "background", + "paint": { + "background-color": "white" + } + }, + { + "id": "puck123", + "type": "location-indicator", + "layout" : { "bearing" : 45, + "bearing-image" : "puck", + "top-image" : "puck_hat", + "shadow-image" : "puck_shadow", + "perspective-compensation" : 1, + "image-tilt-displacement" : 5 + }, + "paint" : { + "accuracy-radius-transition": { "duration": 0, "delay": 0 }, + "bearing-image-size-transition": { "duration": 0, "delay": 0 }, + "top-image-size-transition": { "duration": 0, "delay": 0 }, + "shadow-image-size-transition": { "duration": 0, "delay": 0 }, + "accuracy-radius-color-transition": { "duration": 0, "delay": 0 }, + "accuracy-radius-border-color-transition": { "duration": 0, "delay": 0 }, + + "location" : [ 35.693055, 139.766707, 0], + "accuracy-radius": 90.0, + "bearing-image-size" : 48, + "top-image-size" : 16, + "shadow-image-size" : 112, + + "accuracy-radius-color": "rgba(255,0,0,0.2)", + "accuracy-radius-border-color": "rgba(255,0,255,0.6)" + } + } + ] +} diff --git a/metrics/tests/location_indicator/tilted_texture_shift_top_right/expected.png b/metrics/tests/location_indicator/tilted_texture_shift_top_right/expected.png new file mode 100644 index 0000000000..3b39556295 Binary files /dev/null and b/metrics/tests/location_indicator/tilted_texture_shift_top_right/expected.png differ diff --git a/metrics/tests/location_indicator/tilted_texture_shift_top_right/style.json b/metrics/tests/location_indicator/tilted_texture_shift_top_right/style.json new file mode 100644 index 0000000000..71412339e6 --- /dev/null +++ b/metrics/tests/location_indicator/tilted_texture_shift_top_right/style.json @@ -0,0 +1,68 @@ +{ + "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.759723, 35.692799 ], + "zoom": 16, + "pitch" : 60, + "bearing" : 42, + "sources": {}, + "layers": [ + { + "id": "background", + "type": "background", + "paint": { + "background-color": "white" + } + }, + { + "id": "puck123", + "type": "location-indicator", + "layout" : { "bearing" : 0, + "bearing-image" : "puck", + "top-image" : "puck_hat", + "shadow-image" : "puck_shadow", + "perspective-compensation" : 1, + "image-tilt-displacement" : 5 + }, + "paint" : { + "accuracy-radius-transition": { "duration": 0, "delay": 0 }, + "bearing-image-size-transition": { "duration": 0, "delay": 0 }, + "top-image-size-transition": { "duration": 0, "delay": 0 }, + "shadow-image-size-transition": { "duration": 0, "delay": 0 }, + "accuracy-radius-color-transition": { "duration": 0, "delay": 0 }, + "accuracy-radius-border-color-transition": { "duration": 0, "delay": 0 }, + + "location" : [ 35.693055, 139.766707, 0], + "accuracy-radius": 90.0, + "bearing-image-size" : 48, + "top-image-size" : 16, + "shadow-image-size" : 112, + + "accuracy-radius-color": "rgba(255,0,0,0.2)", + "accuracy-radius-border-color": "rgba(255,0,255,0.6)" + } + } + ] +} diff --git a/metrics/tests/location_indicator/two_textures/expected.png b/metrics/tests/location_indicator/two_textures/expected.png new file mode 100644 index 0000000000..f876aaddb7 Binary files /dev/null and b/metrics/tests/location_indicator/two_textures/expected.png differ diff --git a/metrics/tests/location_indicator/two_textures/style.json b/metrics/tests/location_indicator/two_textures/style.json new file mode 100644 index 0000000000..01c5405265 --- /dev/null +++ b/metrics/tests/location_indicator/two_textures/style.json @@ -0,0 +1,67 @@ +{ + "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-indicator", + "layout" : { "bearing" : 45, + "bearing-image" : "puck", + "shadow-image" : "puck_shadow", + "perspective-compensation" : 1, + "image-tilt-displacement" : 5 + }, + "paint" : { + "accuracy-radius-transition": { "duration": 0, "delay": 0 }, + "bearing-image-size-transition": { "duration": 0, "delay": 0 }, + "top-image-size-transition": { "duration": 0, "delay": 0 }, + "shadow-image-size-transition": { "duration": 0, "delay": 0 }, + "accuracy-radius-color-transition": { "duration": 0, "delay": 0 }, + "accuracy-radius-border-color-transition": { "duration": 0, "delay": 0 }, + + "location" : [ 35.693055, 139.766707, 0], + "accuracy-radius": 90.0, + "bearing-image-size" : 48, + "top-image-size" : 16, + "shadow-image-size" : 112, + + "accuracy-radius-color": "rgba(255,0,0,0.2)", + "accuracy-radius-border-color": "rgba(255,0,255,0.6)" + } + } + ] +} -- cgit v1.2.1