Add LocationIndicatorLayer
New key is "G" in mbgl-glfw, cycling between no puck, centered in the viewport and positioned in Tokyo.
BIN
metrics/tests/location_indicator/dateline/expected.png
Normal file
|
After Width: | Height: | Size: 9.1 KiB |
68
metrics/tests/location_indicator/dateline/style.json
Normal file
@@ -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)"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
BIN
metrics/tests/location_indicator/default/expected.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
100
metrics/tests/location_indicator/default/style.json
Normal file
@@ -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)"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
BIN
metrics/tests/location_indicator/no_radius_border/expected.png
Normal file
|
After Width: | Height: | Size: 9.1 KiB |
68
metrics/tests/location_indicator/no_radius_border/style.json
Normal file
@@ -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)"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
BIN
metrics/tests/location_indicator/no_radius_fill/expected.png
Normal file
|
After Width: | Height: | Size: 7.4 KiB |
68
metrics/tests/location_indicator/no_radius_fill/style.json
Normal file
@@ -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)"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
BIN
metrics/tests/location_indicator/no_textures/expected.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
65
metrics/tests/location_indicator/no_textures/style.json
Normal file
@@ -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)"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
BIN
metrics/tests/location_indicator/one_texture/expected.png
Normal file
|
After Width: | Height: | Size: 3.4 KiB |
66
metrics/tests/location_indicator/one_texture/style.json
Normal file
@@ -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)"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
BIN
metrics/tests/location_indicator/rotated/expected.png
Normal file
|
After Width: | Height: | Size: 9.2 KiB |
68
metrics/tests/location_indicator/rotated/style.json
Normal file
@@ -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)"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
BIN
metrics/tests/location_indicator/tilted/expected.png
Normal file
|
After Width: | Height: | Size: 5.8 KiB |
68
metrics/tests/location_indicator/tilted/style.json
Normal file
@@ -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)"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
After Width: | Height: | Size: 6.3 KiB |
@@ -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)"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
After Width: | Height: | Size: 6.2 KiB |
@@ -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)"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
After Width: | Height: | Size: 5.9 KiB |
@@ -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)"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
After Width: | Height: | Size: 3.2 KiB |
@@ -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)"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
After Width: | Height: | Size: 3.2 KiB |
@@ -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)"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
BIN
metrics/tests/location_indicator/two_textures/expected.png
Normal file
|
After Width: | Height: | Size: 8.7 KiB |
67
metrics/tests/location_indicator/two_textures/style.json
Normal file
@@ -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)"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||