Skip to content

Commit e5dfc34

Browse files
authored
Merge pull request #7135 from plotly/mapbox-predefined-styles
Add mocks to illustrate predefined styles in old `mapbox` subplots similar to new `map` subplots
2 parents f595094 + c31bc9f commit e5dfc34

File tree

4 files changed

+295
-0
lines changed

4 files changed

+295
-0
lines changed
Loading
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
{
2+
"data": [
3+
{
4+
"subplot": "mapbox",
5+
"text": ["basic"],
6+
"textposition": "top center",
7+
"marker": {
8+
"size": [0]
9+
},
10+
"type": "scattermapbox",
11+
"mode": "markers+text",
12+
"lon": [-75],
13+
"lat": [45.05]
14+
},
15+
{
16+
"subplot": "mapbox2",
17+
"text": ["carto-darkmatter"],
18+
"textposition": "top center",
19+
"marker": {
20+
"size": [0]
21+
},
22+
"type": "scattermapbox",
23+
"mode": "markers+text",
24+
"lon": [-75],
25+
"lat": [45.05]
26+
},
27+
{
28+
"subplot": "mapbox4",
29+
"text": ["carto-positron"],
30+
"textposition": "top center",
31+
"marker": {
32+
"size": [0]
33+
},
34+
"type": "scattermapbox",
35+
"mode": "markers+text",
36+
"lon": [-75],
37+
"lat": [45.05]
38+
}
39+
],
40+
"layout": {
41+
"mapbox": {
42+
"zoom": 10,
43+
"style": "basic",
44+
"center": {
45+
"lon": -75,
46+
"lat": 45
47+
},
48+
"domain": {
49+
"x": [0, 1],
50+
"y": [0.84, 0.96]
51+
}
52+
},
53+
"mapbox2": {
54+
"zoom": 10,
55+
"style": "carto-darkmatter",
56+
"center": {
57+
"lon": -75,
58+
"lat": 45
59+
},
60+
"domain": {
61+
"x": [0, 1],
62+
"y": [0.7, 0.82]
63+
}
64+
},
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+
}
76+
},
77+
78+
"height": 3000,
79+
"width": 900,
80+
"margin": {
81+
"t": 50,
82+
"b": 10,
83+
"l": 10,
84+
"r": 10
85+
},
86+
"showlegend": false,
87+
"title": {
88+
"text": "Predefined styles in mapbox",
89+
"font": {
90+
"size": 28,
91+
"weight": 800,
92+
"style": "italic"
93+
}
94+
},
95+
"font": {
96+
"color": "#777",
97+
"size": 28
98+
}
99+
}
100+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,195 @@
1+
{
2+
"data": [
3+
{
4+
"subplot": "mapbox",
5+
"text": ["dark"],
6+
"textposition": "top center",
7+
"marker": {
8+
"size": [0]
9+
},
10+
"type": "scattermapbox",
11+
"mode": "markers+text",
12+
"lon": [-75],
13+
"lat": [45.05]
14+
},
15+
{
16+
"subplot": "mapbox2",
17+
"text": ["light"],
18+
"textposition": "top center",
19+
"marker": {
20+
"size": [0]
21+
},
22+
"type": "scattermapbox",
23+
"mode": "markers+text",
24+
"lon": [-75],
25+
"lat": [45.05]
26+
},
27+
{
28+
"subplot": "mapbox3",
29+
"text": ["open-street-map"],
30+
"textposition": "top center",
31+
"marker": {
32+
"size": [0]
33+
},
34+
"type": "scattermapbox",
35+
"mode": "markers+text",
36+
"lon": [-75],
37+
"lat": [45.05]
38+
},
39+
{
40+
"subplot": "mapbox4",
41+
"text": ["outdoors"],
42+
"textposition": "top center",
43+
"marker": {
44+
"size": [0]
45+
},
46+
"type": "scattermapbox",
47+
"mode": "markers+text",
48+
"lon": [-75],
49+
"lat": [45.05]
50+
},
51+
{
52+
"subplot": "mapbox5",
53+
"text": ["satellite"],
54+
"textposition": "top center",
55+
"marker": {
56+
"size": [0]
57+
},
58+
"type": "scattermapbox",
59+
"mode": "markers+text",
60+
"lon": [-75],
61+
"lat": [45.05]
62+
},
63+
{
64+
"subplot": "mapbox6",
65+
"text": ["satellite-streets"],
66+
"textposition": "top center",
67+
"marker": {
68+
"size": [0]
69+
},
70+
"type": "scattermapbox",
71+
"mode": "markers+text",
72+
"lon": [-75],
73+
"lat": [45.05]
74+
},
75+
{
76+
"subplot": "mapbox7",
77+
"text": ["streets"],
78+
"textposition": "top center",
79+
"marker": {
80+
"size": [0]
81+
},
82+
"type": "scattermapbox",
83+
"mode": "markers+text",
84+
"lon": [-75],
85+
"lat": [45.05]
86+
}
87+
],
88+
"layout": {
89+
"mapbox": {
90+
"zoom": 10,
91+
"style": "dark",
92+
"center": {
93+
"lon": -75,
94+
"lat": 45
95+
},
96+
"domain": {
97+
"x": [0, 1],
98+
"y": [0.84, 0.96]
99+
}
100+
},
101+
"mapbox2": {
102+
"zoom": 10,
103+
"style": "light",
104+
"center": {
105+
"lon": -75,
106+
"lat": 45
107+
},
108+
"domain": {
109+
"x": [0, 1],
110+
"y": [0.7, 0.82]
111+
}
112+
},
113+
"mapbox3": {
114+
"zoom": 10,
115+
"style": "open-street-map",
116+
"center": {
117+
"lon": -75,
118+
"lat": 45
119+
},
120+
"domain": {
121+
"x": [0, 1],
122+
"y": [0.56, 0.68]
123+
}
124+
},
125+
"mapbox4": {
126+
"zoom": 10,
127+
"style": "outdoors",
128+
"center": {
129+
"lon": -75,
130+
"lat": 45
131+
},
132+
"domain": {
133+
"x": [0, 1],
134+
"y": [0.42, 0.54]
135+
}
136+
},
137+
"mapbox5": {
138+
"zoom": 10,
139+
"style": "satellite",
140+
"center": {
141+
"lon": -75,
142+
"lat": 45
143+
},
144+
"domain": {
145+
"x": [0, 1],
146+
"y": [0.28, 0.4]
147+
}
148+
},
149+
"mapbox6": {
150+
"zoom": 10,
151+
"style": "satellite-streets",
152+
"center": {
153+
"lon": -75,
154+
"lat": 45
155+
},
156+
"domain": {
157+
"x": [0, 1],
158+
"y": [0.14, 0.26]
159+
}
160+
},
161+
"mapbox7": {
162+
"zoom": 10,
163+
"style": "streets",
164+
"center": {
165+
"lon": -75,
166+
"lat": 45
167+
},
168+
"domain": {
169+
"x": [0, 1],
170+
"y": [0, 0.12]
171+
}
172+
},
173+
"height": 3000,
174+
"width": 900,
175+
"margin": {
176+
"t": 50,
177+
"b": 10,
178+
"l": 10,
179+
"r": 10
180+
},
181+
"showlegend": false,
182+
"title": {
183+
"text": "Predefined styles in mapbox",
184+
"font": {
185+
"size": 28,
186+
"weight": 800,
187+
"style": "italic"
188+
}
189+
},
190+
"font": {
191+
"color": "#777",
192+
"size": 28
193+
}
194+
}
195+
}

0 commit comments

Comments
 (0)