Skip to content

Commit 4d9b566

Browse files
committed
resolves #1486 - add geo_centering mock
- fixed earlier, 🔒 here. - this mock shows how to position a non-clipped map about a center (lon, lat)
1 parent eaf44a8 commit 4d9b566

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed
56.4 KB
Loading

test/image/mocks/geo_centering.json

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"data": [{
3+
"type": "scattergeo",
4+
"mode": "markers",
5+
"marker": {
6+
"size": 9,
7+
"color": "#154360"
8+
},
9+
"lat": [44.065041, 42.012902],
10+
"lon": [-82.649583, -82.545763]
11+
}],
12+
"layout": {
13+
"margin": {"t": 70, "b": 40, "l": 10, "r": 10},
14+
"geo": {
15+
"projection": {
16+
"type": "kavrayskiy7",
17+
"rotation":{"lon": -81.6},
18+
"scale": 6
19+
},
20+
"center": {
21+
"lat": 39
22+
},
23+
"showcountries": true,
24+
"showland": true,
25+
"showsubunits": true,
26+
"lataxis": {
27+
"showgrid": true,
28+
"tick0": 3,
29+
"dtick": 3
30+
},
31+
"lonaxis": {
32+
"showgrid": true,
33+
"tick0": 3,
34+
"dtick": 3
35+
},
36+
"landcolor": "rgb(243,243,243)",
37+
"countrycolor": "rgb(204,204,204)",
38+
"subunitcolor": "rgb(224,224,224)"
39+
}
40+
}
41+
}

0 commit comments

Comments
 (0)