Skip to content

Commit 7167a9f

Browse files
committed
add mapbox image tests
1 parent b6e4734 commit 7167a9f

16 files changed

+1093
-0
lines changed

test/image/baselines/mapbox_0.png

84.6 KB
Loading
125 KB
Loading
58 KB
Loading
103 KB
Loading
268 KB
Loading

test/image/baselines/mapbox_fill.png

48.2 KB
Loading
224 KB
Loading
65.1 KB
Loading

test/image/mocks/mapbox_0.json

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"data": [
3+
{
4+
"type": "scattermapbox",
5+
"mode": "markers+lines",
6+
"lon": [
7+
10,
8+
20,
9+
30
10+
],
11+
"lat": [
12+
10,
13+
20,
14+
30
15+
],
16+
"marker": {
17+
"size": 20
18+
},
19+
"uid": "d4580a"
20+
},
21+
{
22+
"type": "scattermapbox",
23+
"mode": "markers+lines",
24+
"lon": [
25+
-75,
26+
-120,
27+
170
28+
],
29+
"lat": [
30+
45,
31+
20,
32+
-40
33+
],
34+
"marker": {
35+
"size": 20
36+
},
37+
"uid": "f5a4c5"
38+
}
39+
],
40+
"layout": {
41+
"mapbox": {
42+
"style": "dark",
43+
"center": {
44+
"lon": -4.71092760419225,
45+
"lat": 19.475789009298566
46+
},
47+
"zoom": 1.2345714569517612
48+
},
49+
"height": 450,
50+
"width": 1100,
51+
"autosize": true
52+
}
53+
}

test/image/mocks/mapbox_angles.json

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
{
2+
"data": [
3+
{
4+
"type": "scattermapbox",
5+
"mode": "markers",
6+
"lon": [
7+
-73.6,
8+
-73.55,
9+
-73.57
10+
],
11+
"lat": [
12+
45.5,
13+
45.49,
14+
45.51
15+
],
16+
"marker": {
17+
"size": 15,
18+
"symbol": [
19+
"monument",
20+
"harbor",
21+
"music"
22+
]
23+
}
24+
},
25+
{
26+
"type": "scattermapbox",
27+
"mode": "markers",
28+
"lon": [
29+
-73.6,
30+
-73.55,
31+
-73.57
32+
],
33+
"lat": [
34+
45.5,
35+
45.49,
36+
45.51
37+
],
38+
"marker": {
39+
"size": 12,
40+
"symbol": [
41+
"monument",
42+
"harbor",
43+
"music"
44+
]
45+
},
46+
"subplot": "mapbox2"
47+
}
48+
],
49+
"layout": {
50+
"mapbox": {
51+
"domain": {
52+
"x": [
53+
0,
54+
1
55+
],
56+
"y": [
57+
0,
58+
1
59+
]
60+
},
61+
"center": {
62+
"lon": -73.58432898976686,
63+
"lat": 45.51514448108094
64+
},
65+
"zoom": 10.8,
66+
"pitch": 60,
67+
"bearing": -60
68+
},
69+
"mapbox2": {
70+
"domain": {
71+
"x": [
72+
0.6,
73+
1
74+
],
75+
"y": [
76+
0.6,
77+
1
78+
]
79+
},
80+
"center": {
81+
"lon": -73.61356140239891,
82+
"lat": 45.49896198405253
83+
},
84+
"zoom": 9.8
85+
},
86+
"showlegend": false,
87+
"width": 700,
88+
"height": 450
89+
}
90+
}

0 commit comments

Comments
 (0)