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+
}

test/image/mocks/mapbox_bubbles.json

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
{
2+
"data": [
3+
{
4+
"type": "scattermapbox",
5+
"lon": [
6+
10,
7+
20,
8+
30
9+
],
10+
"lat": [
11+
10,
12+
20,
13+
30
14+
],
15+
"marker": {
16+
"size": [
17+
20,
18+
10,
19+
40
20+
],
21+
"color": [
22+
"red",
23+
"blue",
24+
"orange"
25+
]
26+
}
27+
},
28+
{
29+
"type": "scattermapbox",
30+
"lon": [
31+
-75,
32+
-120,
33+
100
34+
],
35+
"lat": [
36+
45,
37+
20,
38+
-40
39+
],
40+
"marker": {
41+
"size": [
42+
60,
43+
20,
44+
40
45+
],
46+
"color": [
47+
0,
48+
20,
49+
30
50+
],
51+
"colorbar": {},
52+
"cmin": 0,
53+
"cmax": 30,
54+
"colorscale": [
55+
[
56+
0,
57+
"rgb(220,220,220)"
58+
],
59+
[
60+
0.2,
61+
"rgb(245,195,157)"
62+
],
63+
[
64+
0.4,
65+
"rgb(245,160,105)"
66+
],
67+
[
68+
1,
69+
"rgb(178,10,28)"
70+
]
71+
]
72+
}
73+
}
74+
],
75+
"layout": {
76+
"mapbox": {
77+
"style": "light",
78+
"zoom": 0.5
79+
},
80+
"showlegend": false,
81+
"height": 450,
82+
"width": 1100,
83+
"autosize": true
84+
}
85+
}
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
"data": [
3+
{
4+
"type": "scattermapbox",
5+
"mode": "lines",
6+
"lon": [
7+
10,
8+
20,
9+
30,
10+
null,
11+
20,
12+
30,
13+
40
14+
],
15+
"lat": [
16+
10,
17+
20,
18+
30,
19+
null,
20+
10,
21+
20,
22+
30
23+
],
24+
"line": {
25+
"width": 5
26+
},
27+
"name": "connectgaps false"
28+
},
29+
{
30+
"type": "scattermapbox",
31+
"mode": "lines",
32+
"lon": [
33+
10,
34+
20,
35+
30,
36+
null,
37+
20,
38+
30,
39+
40
40+
],
41+
"lat": [
42+
-10,
43+
-20,
44+
-30,
45+
null,
46+
-10,
47+
-20,
48+
-30
49+
],
50+
"line": {
51+
"width": 10
52+
},
53+
"connectgaps": true,
54+
"name": "connectgaps true"
55+
}
56+
],
57+
"layout": {
58+
"mapbox": {
59+
"style": "streets",
60+
"zoom": 1.5,
61+
"center": {
62+
"lon": 56,
63+
"lat": 1
64+
}
65+
},
66+
"height": 450,
67+
"width": 1100,
68+
"autosize": true
69+
}
70+
}
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
"data": [
3+
{
4+
"type": "scattermapbox",
5+
"mode": "markers",
6+
"lon": [
7+
-73.6,
8+
-73.62,
9+
-73.58
10+
],
11+
"lat": [
12+
45.5,
13+
45.52,
14+
45.48
15+
],
16+
"marker": {
17+
"size": 20,
18+
"color": [
19+
"#1b9e77",
20+
"#d95f02",
21+
"#7570b3"
22+
]
23+
}
24+
},
25+
{
26+
"type": "scattermapbox",
27+
"mode": "markers",
28+
"lon": [
29+
-73.6,
30+
-73.62,
31+
-73.58
32+
],
33+
"lat": [
34+
45.5,
35+
45.52,
36+
45.48
37+
],
38+
"marker": {
39+
"size": [
40+
20,
41+
30,
42+
10
43+
],
44+
"color": "#1b9e77"
45+
},
46+
"subplot": "mapbox2"
47+
}
48+
],
49+
"layout": {
50+
"mapbox": {
51+
"style": "mapbox://styles/etpinard/cip93fm98000sbmnuednknloo",
52+
"center": {
53+
"lon": -73.60287319770295,
54+
"lat": 45.50110152988742
55+
},
56+
"zoom": 11.4
57+
},
58+
"mapbox2": {
59+
"style": "satellite-streets",
60+
"center": {
61+
"lon": -73.60287319770295,
62+
"lat": 45.50110152988742
63+
},
64+
"zoom": 11.4
65+
},
66+
"showlegend": false,
67+
"width": 700,
68+
"height": 450
69+
}
70+
}

0 commit comments

Comments
 (0)