Skip to content

Commit 1e551da

Browse files
authored
Merge pull request #4457 from plotly/update-docs
Update map tiles in docs
2 parents c2c9b4b + 5e8bfee commit 1e551da

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

Diff for: .circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 2.1
22

33
orbs:
4-
browser-tools: circleci/[email protected].5
4+
browser-tools: circleci/[email protected].6
55

66
commands:
77
test_core:

Diff for: doc/python/filled-area-on-mapbox.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ fig = go.Figure(go.Scattermapbox(
6060

6161
fig.update_layout(
6262
mapbox = {
63-
'style': "stamen-terrain",
63+
'style': "open-street-map",
6464
'center': {'lon': -73, 'lat': 46 },
6565
'zoom': 5},
6666
showlegend = False)
@@ -81,7 +81,7 @@ fig = go.Figure(go.Scattermapbox(
8181
lat = [30, 6, 6, 30, 30, None, 20, 30, 30, 20, 20, None, 40, 50, 50, 40, 40]))
8282

8383
fig.update_layout(
84-
mapbox = {'style': "stamen-terrain", 'center': {'lon': 30, 'lat': 30}, 'zoom': 2},
84+
mapbox = {'style': "open-street-map", 'center': {'lon': 30, 'lat': 30}, 'zoom': 2},
8585
showlegend = False,
8686
margin = {'l':0, 'r':0, 'b':0, 't':0})
8787

@@ -102,7 +102,7 @@ fig = go.Figure(go.Scattermapbox(
102102

103103
fig.update_layout(
104104
mapbox = {
105-
'style': "stamen-terrain",
105+
'style': "open-street-map",
106106
'center': { 'lon': -73.6, 'lat': 45.5},
107107
'zoom': 12, 'layers': [{
108108
'source': {

Diff for: doc/python/lines-on-mapbox.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ import plotly.express as px
5151

5252
fig = px.line_mapbox(us_cities, lat="lat", lon="lon", color="State", zoom=3, height=300)
5353

54-
fig.update_layout(mapbox_style="stamen-terrain", mapbox_zoom=4, mapbox_center_lat = 41,
54+
fig.update_layout(mapbox_style="open-street-map", mapbox_zoom=4, mapbox_center_lat = 41,
5555
margin={"r":0,"t":0,"l":0,"b":0})
5656

5757
fig.show()
@@ -95,7 +95,7 @@ for feature, name in zip(geo_df.geometry, geo_df.name):
9595
names = np.append(names, None)
9696

9797
fig = px.line_mapbox(lat=lats, lon=lons, hover_name=names,
98-
mapbox_style="stamen-terrain", zoom=1)
98+
mapbox_style="open-street-map", zoom=1)
9999
fig.show()
100100
```
101101

@@ -123,7 +123,7 @@ fig.update_layout(
123123
margin ={'l':0,'t':0,'b':0,'r':0},
124124
mapbox = {
125125
'center': {'lon': 10, 'lat': 10},
126-
'style': "stamen-terrain",
126+
'style': "open-street-map",
127127
'center': {'lon': -20, 'lat': -20},
128128
'zoom': 1})
129129

Diff for: doc/python/mapbox-density-heatmaps.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jupyter:
3737

3838
To plot on Mapbox maps with Plotly you _may_ need a Mapbox account and a public [Mapbox Access Token](https://www.mapbox.com/studio). See our [Mapbox Map Layers](/python/mapbox-layers/) documentation for more information.
3939

40-
### Stamen Terrain base map (no token needed): density mapbox with `plotly.express`
40+
### OpenStreetMap base map (no token needed): density mapbox with `plotly.express`
4141

4242
[Plotly Express](/python/plotly-express/) is the easy-to-use, high-level interface to Plotly, which [operates on a variety of types of data](/python/px-arguments/) and produces [easy-to-style figures](/python/styling-plotly-express/).
4343

@@ -50,11 +50,11 @@ df = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/earth
5050
import plotly.express as px
5151
fig = px.density_mapbox(df, lat='Latitude', lon='Longitude', z='Magnitude', radius=10,
5252
center=dict(lat=0, lon=180), zoom=0,
53-
mapbox_style="stamen-terrain")
53+
mapbox_style="open-street-map")
5454
fig.show()
5555
```
5656

57-
### Stamen Terrain base map (no token needed): density mapbox with `plotly.graph_objects`
57+
### OpenStreetMap base map (no token needed): density mapbox with `plotly.graph_objects`
5858

5959
If Plotly Express does not provide a good starting point, it is also possible to use [the more generic `go.Densitymapbox` class from `plotly.graph_objects`](/python/graph-objects/).
6060

@@ -65,7 +65,7 @@ quakes = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/e
6565
import plotly.graph_objects as go
6666
fig = go.Figure(go.Densitymapbox(lat=quakes.Latitude, lon=quakes.Longitude, z=quakes.Magnitude,
6767
radius=10))
68-
fig.update_layout(mapbox_style="stamen-terrain", mapbox_center_lon=180)
68+
fig.update_layout(mapbox_style="open-street-map", mapbox_center_lon=180)
6969
fig.update_layout(margin={"r":0,"t":0,"l":0,"b":0})
7070
fig.show()
7171
```

Diff for: doc/python/mapbox-layers.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ The word "mapbox" in the trace names and `layout.mapbox` refers to the Mapbox GL
6464
The accepted values for `layout.mapbox.style` are one of:
6565

6666
- `"white-bg"` yields an empty white canvas which results in no external HTTP requests
67-
- `"open-street-map"`, `"carto-positron"`, `"carto-darkmatter"`, `"stamen-terrain"`, `"stamen-toner"` or `"stamen-watercolor"` yield maps composed of _raster_ tiles from various public tile servers which do not require signups or access tokens
67+
- `"open-street-map"`, `"carto-positron"`, and `"carto-darkmatter"` yield maps composed of _raster_ tiles from various public tile servers which do not require signups or access tokens. There is currently a known issue with `"stamen-terrain"`, `"stamen-toner"` and `"stamen-watercolor"` tiles, which will be fixed in a future Plotly.py release.
6868
- `"basic"`, `"streets"`, `"outdoors"`, `"light"`, `"dark"`, `"satellite"`, or `"satellite-streets"` yield maps composed of _vector_ tiles from the Mapbox service, and _do_ require a Mapbox Access Token or an on-premise Mapbox installation.
6969
- A Mapbox service style URL, which requires a Mapbox Access Token or an on-premise Mapbox installation.
7070
- A Mapbox Style object as defined at https://docs.mapbox.com/mapbox-gl-js/style-spec/

0 commit comments

Comments
 (0)