Skip to content

Commit e59c90b

Browse files
committed
resolves #1698 - add geo_across-antimeridian mock
- while #1698 was fixed by the improve geo defaults, this 🔒 it down.
1 parent 3bd89d3 commit e59c90b

File tree

2 files changed

+89
-0
lines changed

2 files changed

+89
-0
lines changed
33.1 KB
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
{
2+
"data": [
3+
{
4+
"type": "scattergeo",
5+
"lon": [170, 180, -180, -170],
6+
"lat": [-50, -45, -10, -20.5],
7+
"marker": { "size": 20 }
8+
},
9+
{
10+
"type": "choropleth",
11+
"locations": ["NZL", "AUS"],
12+
"z": [0, 1],
13+
"showscale": false
14+
},
15+
{
16+
"type": "scattergeo",
17+
"lon": [170, 180, -180, -170],
18+
"lat": [-50, -45, -10, -20.5],
19+
"marker": { "size": 20 },
20+
"geo": "geo2"
21+
},
22+
{
23+
"type": "choropleth",
24+
"locations": ["NZL", "AUS"],
25+
"z": [0, 1],
26+
"showscale": false,
27+
"geo": "geo2"
28+
}
29+
],
30+
"layout": {
31+
"geo": {
32+
"domain": {
33+
"x": [0, 0.5],
34+
"y": [0, 1]
35+
},
36+
"type": "miller",
37+
"showocean": true,
38+
"lonaxis": {
39+
"showgrid": true,
40+
"dtick": 2,
41+
"range": [120, -120]
42+
},
43+
"projection": {
44+
"scale": 2
45+
},
46+
"center": {
47+
"lat": -45
48+
}
49+
},
50+
"geo2": {
51+
"domain": {
52+
"x": [0.5, 1],
53+
"y": [0, 1]
54+
},
55+
"type": "miller",
56+
"showocean": true,
57+
"lonaxis": {
58+
"showgrid": true,
59+
"dtick": 2,
60+
"range": [150, -150]
61+
},
62+
"lataxis": {
63+
"range": [-90, 0]
64+
}
65+
},
66+
"annotations": [{
67+
"showarrow": false,
68+
"xref": "paper",
69+
"yref": "paper",
70+
"x": 0.25,
71+
"y": 1,
72+
"xanchor": "center",
73+
"yanchor": "bottom",
74+
"text": "set <i>lonaxis.range</i>, <i>center.lon</i> and <i>projection.scale</i>"
75+
}, {
76+
"showarrow": false,
77+
"xref": "paper",
78+
"yref": "paper",
79+
"x": 0.75,
80+
"y": 1,
81+
"xanchor": "center",
82+
"yanchor": "bottom",
83+
"text": "set <i>lonaxis.range</i> and <i>lataxis.range</i>"
84+
}],
85+
"showlegend": false,
86+
"width": 700,
87+
"height": 440
88+
}
89+
}

0 commit comments

Comments
 (0)