-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[BUG]: Access blocked for OpenStreetMap tiles #5562
Copy link
Copy link
Open
Labels
bugsomething brokensomething broken
Description
Description
Generating a map from OpenStreetMap, some tiles are filled with the error message: "403r Access blocked. Referer is required by tile usage policý of OpenStreetMap's volunteer-run servers: osm.wiki/Blocked"
This occurs randomly about half the times, on one or more tiles.
Screenshots/Video
Steps to reproduce
Python code:
import plotly.graph_objects as go
lat = 41.580472
lon = -1.1161953
fig = go.Figure(go.Scattermap(
lat=[lat],
lon=[lon],
mode='markers',
marker=dict(symbol="circle", size=30)
))
fig.update_layout(
map=dict(
style="open-street-map",
center=dict(lat=lat, lon=lon),
zoom=16
),
margin={"r": 0, "t": 0, "l": 0, "b": 0}
)
img = fig.to_image('png')
with open('map.png', 'wb') as f:
f.write(img)
Generated with:
plotly 6.6.0
kaleido 1.2.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugsomething brokensomething broken