Skip to content

Commit c31bc9f

Browse files
committed
add mapbox predefined styles not including stamen
1 parent 3000123 commit c31bc9f

File tree

4 files changed

+43
-138
lines changed

4 files changed

+43
-138
lines changed
Loading
Loading

test/image/mocks/mapbox_predefined-styles1.json

+21-116
Original file line numberDiff line numberDiff line change
@@ -1,92 +1,44 @@
11
{
22
"data": [
33
{
4-
"subplot": "map",
4+
"subplot": "mapbox",
55
"text": ["basic"],
66
"textposition": "top center",
77
"marker": {
88
"size": [0]
99
},
10-
"type": "scattermap",
10+
"type": "scattermapbox",
1111
"mode": "markers+text",
1212
"lon": [-75],
1313
"lat": [45.05]
1414
},
1515
{
16-
"subplot": "map2",
16+
"subplot": "mapbox2",
1717
"text": ["carto-darkmatter"],
1818
"textposition": "top center",
1919
"marker": {
2020
"size": [0]
2121
},
22-
"type": "scattermap",
22+
"type": "scattermapbox",
2323
"mode": "markers+text",
2424
"lon": [-75],
2525
"lat": [45.05]
2626
},
2727
{
28-
"subplot": "map3",
29-
"text": ["carto-darkmatter-nolabels"],
30-
"textposition": "top center",
31-
"marker": {
32-
"size": [0]
33-
},
34-
"type": "scattermap",
35-
"mode": "markers+text",
36-
"lon": [-75],
37-
"lat": [45.05]
38-
},
39-
{
40-
"subplot": "map4",
28+
"subplot": "mapbox4",
4129
"text": ["carto-positron"],
4230
"textposition": "top center",
4331
"marker": {
4432
"size": [0]
4533
},
46-
"type": "scattermap",
47-
"mode": "markers+text",
48-
"lon": [-75],
49-
"lat": [45.05]
50-
},
51-
{
52-
"subplot": "map5",
53-
"text": ["carto-positron-nolabels"],
54-
"textposition": "top center",
55-
"marker": {
56-
"size": [0]
57-
},
58-
"type": "scattermap",
59-
"mode": "markers+text",
60-
"lon": [-75],
61-
"lat": [45.05]
62-
},
63-
{
64-
"subplot": "map6",
65-
"text": ["carto-voyager"],
66-
"textposition": "top center",
67-
"marker": {
68-
"size": [0]
69-
},
70-
"type": "scattermap",
71-
"mode": "markers+text",
72-
"lon": [-75],
73-
"lat": [45.05]
74-
},
75-
{
76-
"subplot": "map7",
77-
"text": ["carto-voyager-nolabels"],
78-
"textposition": "top center",
79-
"marker": {
80-
"size": [0]
81-
},
82-
"type": "scattermap",
34+
"type": "scattermapbox",
8335
"mode": "markers+text",
8436
"lon": [-75],
8537
"lat": [45.05]
8638
}
8739
],
8840
"layout": {
89-
"map": {
41+
"mapbox": {
9042
"zoom": 10,
9143
"style": "basic",
9244
"center": {
@@ -98,7 +50,7 @@
9850
"y": [0.84, 0.96]
9951
}
10052
},
101-
"map2": {
53+
"mapbox2": {
10254
"zoom": 10,
10355
"style": "carto-darkmatter",
10456
"center": {
@@ -110,66 +62,19 @@
11062
"y": [0.7, 0.82]
11163
}
11264
},
113-
"map3": {
114-
"zoom": 10,
115-
"style": "carto-darkmatter-nolabels",
116-
"center": {
117-
"lon": -75,
118-
"lat": 45
119-
},
120-
"domain": {
121-
"x": [0, 1],
122-
"y": [0.56, 0.68]
123-
}
124-
},
125-
"map4": {
126-
"zoom": 10,
127-
"style": "carto-positron",
128-
"center": {
129-
"lon": -75,
130-
"lat": 45
131-
},
132-
"domain": {
133-
"x": [0, 1],
134-
"y": [0.42, 0.54]
135-
}
136-
},
137-
"map5": {
138-
"zoom": 10,
139-
"style": "carto-positron-nolabels",
140-
"center": {
141-
"lon": -75,
142-
"lat": 45
143-
},
144-
"domain": {
145-
"x": [0, 1],
146-
"y": [0.28, 0.4]
147-
}
148-
},
149-
"map6": {
150-
"zoom": 10,
151-
"style": "carto-voyager",
152-
"center": {
153-
"lon": -75,
154-
"lat": 45
155-
},
156-
"domain": {
157-
"x": [0, 1],
158-
"y": [0.14, 0.26]
159-
}
160-
},
161-
"map7": {
162-
"zoom": 10,
163-
"style": "carto-voyager-nolabels",
164-
"center": {
165-
"lon": -75,
166-
"lat": 45
65+
"mapbox4": {
66+
"zoom": 10,
67+
"style": "carto-positron",
68+
"center": {
69+
"lon": -75,
70+
"lat": 45
71+
},
72+
"domain": {
73+
"x": [0, 1],
74+
"y": [0.42, 0.54]
75+
}
16776
},
168-
"domain": {
169-
"x": [0, 1],
170-
"y": [0, 0.12]
171-
}
172-
},
77+
17378
"height": 3000,
17479
"width": 900,
17580
"margin": {
@@ -180,7 +85,7 @@
18085
},
18186
"showlegend": false,
18287
"title": {
183-
"text": "Predefined styles in maps",
88+
"text": "Predefined styles in mapbox",
18489
"font": {
18590
"size": 28,
18691
"weight": 800,

test/image/mocks/mapbox_predefined-styles2.json

+22-22
Original file line numberDiff line numberDiff line change
@@ -1,92 +1,92 @@
11
{
22
"data": [
33
{
4-
"subplot": "map",
4+
"subplot": "mapbox",
55
"text": ["dark"],
66
"textposition": "top center",
77
"marker": {
88
"size": [0]
99
},
10-
"type": "scattermap",
10+
"type": "scattermapbox",
1111
"mode": "markers+text",
1212
"lon": [-75],
1313
"lat": [45.05]
1414
},
1515
{
16-
"subplot": "map2",
16+
"subplot": "mapbox2",
1717
"text": ["light"],
1818
"textposition": "top center",
1919
"marker": {
2020
"size": [0]
2121
},
22-
"type": "scattermap",
22+
"type": "scattermapbox",
2323
"mode": "markers+text",
2424
"lon": [-75],
2525
"lat": [45.05]
2626
},
2727
{
28-
"subplot": "map3",
28+
"subplot": "mapbox3",
2929
"text": ["open-street-map"],
3030
"textposition": "top center",
3131
"marker": {
3232
"size": [0]
3333
},
34-
"type": "scattermap",
34+
"type": "scattermapbox",
3535
"mode": "markers+text",
3636
"lon": [-75],
3737
"lat": [45.05]
3838
},
3939
{
40-
"subplot": "map4",
40+
"subplot": "mapbox4",
4141
"text": ["outdoors"],
4242
"textposition": "top center",
4343
"marker": {
4444
"size": [0]
4545
},
46-
"type": "scattermap",
46+
"type": "scattermapbox",
4747
"mode": "markers+text",
4848
"lon": [-75],
4949
"lat": [45.05]
5050
},
5151
{
52-
"subplot": "map5",
52+
"subplot": "mapbox5",
5353
"text": ["satellite"],
5454
"textposition": "top center",
5555
"marker": {
5656
"size": [0]
5757
},
58-
"type": "scattermap",
58+
"type": "scattermapbox",
5959
"mode": "markers+text",
6060
"lon": [-75],
6161
"lat": [45.05]
6262
},
6363
{
64-
"subplot": "map6",
64+
"subplot": "mapbox6",
6565
"text": ["satellite-streets"],
6666
"textposition": "top center",
6767
"marker": {
6868
"size": [0]
6969
},
70-
"type": "scattermap",
70+
"type": "scattermapbox",
7171
"mode": "markers+text",
7272
"lon": [-75],
7373
"lat": [45.05]
7474
},
7575
{
76-
"subplot": "map7",
76+
"subplot": "mapbox7",
7777
"text": ["streets"],
7878
"textposition": "top center",
7979
"marker": {
8080
"size": [0]
8181
},
82-
"type": "scattermap",
82+
"type": "scattermapbox",
8383
"mode": "markers+text",
8484
"lon": [-75],
8585
"lat": [45.05]
8686
}
8787
],
8888
"layout": {
89-
"map": {
89+
"mapbox": {
9090
"zoom": 10,
9191
"style": "dark",
9292
"center": {
@@ -98,7 +98,7 @@
9898
"y": [0.84, 0.96]
9999
}
100100
},
101-
"map2": {
101+
"mapbox2": {
102102
"zoom": 10,
103103
"style": "light",
104104
"center": {
@@ -110,7 +110,7 @@
110110
"y": [0.7, 0.82]
111111
}
112112
},
113-
"map3": {
113+
"mapbox3": {
114114
"zoom": 10,
115115
"style": "open-street-map",
116116
"center": {
@@ -122,7 +122,7 @@
122122
"y": [0.56, 0.68]
123123
}
124124
},
125-
"map4": {
125+
"mapbox4": {
126126
"zoom": 10,
127127
"style": "outdoors",
128128
"center": {
@@ -134,7 +134,7 @@
134134
"y": [0.42, 0.54]
135135
}
136136
},
137-
"map5": {
137+
"mapbox5": {
138138
"zoom": 10,
139139
"style": "satellite",
140140
"center": {
@@ -146,7 +146,7 @@
146146
"y": [0.28, 0.4]
147147
}
148148
},
149-
"map6": {
149+
"mapbox6": {
150150
"zoom": 10,
151151
"style": "satellite-streets",
152152
"center": {
@@ -158,7 +158,7 @@
158158
"y": [0.14, 0.26]
159159
}
160160
},
161-
"map7": {
161+
"mapbox7": {
162162
"zoom": 10,
163163
"style": "streets",
164164
"center": {
@@ -180,7 +180,7 @@
180180
},
181181
"showlegend": false,
182182
"title": {
183-
"text": "Predefined styles in maps",
183+
"text": "Predefined styles in mapbox",
184184
"font": {
185185
"size": 28,
186186
"weight": 800,

0 commit comments

Comments
 (0)