[BUG]: Access blocked to OpenStreetMaps raster tiles when saving the graph as .html file
維護者通常 3 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 55/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- javascript, python
研究方向
Start by comparing the generated output from write_html() with the behavior of show() and write_image() for the supplied Scattermap example using open-street-map. The issue does not name relevant source files or tests, so first trace how HTML export handles raster map tiles. Done means the saved HTML displays tiles without the OpenStreetMap access-blocked error.
由索引模型根據 Issue 內容生成。
描述
Description
When the scatter map is generated with the style set to open-street-map and then saved as an .html file the tiles are replaced with the error image with the text "403 Access blocked. App is not following the tile usage policy of OpenStreetMap's volunteer-run servers: osm.wiki/Blocked".
This happens when the write_html() method is called, but not when the write_image() method is called or the show() method is called in a Jupyter notebook.
This is different from the https://github.com/plotly/plotly.py/issues/5562 since that issue only concerns write_image() method.
Screenshots/Video
Steps to reproduce
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}
)
# returns correct raster tiles
fig.write_image('1.png')
# returns error tiles
fig.write_html('1.html')
Notes
plotly version: 7.1.0
- 主要語言
- Python
- 星號
- 18.9k
- 分支
- 2.9k
- 平均合併
- 1 天 22 小時
- 30 天內合併 PR
- 12
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
plotly/plotly.py 的其他 Issue
-
[BUG]: Duplicate `FigureWidget` import code in `graph_objects` and `graph_objs`可能已有人在做 @DawnofGenX 於 6 天前認領。 未關閉bug P3 size: 1
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 3 天內回覆
-
to_typed_array_spec encodes bdata in host byte order; plotly.js always decodes it as little-endian可能已有人在做 @Vikram12301 於 11 天前認領。 未關閉bug P3 size: 1
難度 2/5 1-3 小時 新手友好度 79/100
plotly/plotly.py#5837 · 1 則留言 ·
維護者通常 3 天內回覆
-
[BUG]: NaT inside a datetime64 array serializes as the string "NaT" instead of null可能已有人在做 @senanurcetin 於 13 天前認領。 未關閉bug P3 size: 1
難度 2/5 1-3 小時 新手友好度 82/100
plotly/plotly.py#5829 · 3 則留言 ·
維護者通常 3 天內回覆
-
[BUG]: Integer and string properties reject NumPy scalars可能已有人在做 @RaphaelFakhri 於 14 天前認領。 未關閉bug P3 size: 1
難度 2/5 1-3 小時 新手友好度 70/100
plotly/plotly.py#5827 · 1 則留言 ·
維護者通常 3 天內回覆
-
[BUG]: Single-color requests raise ZeroDivisionError in palette helpers可能已有人在做 @MokiMeow 於 23 天前認領。 未關閉bug P3 size: 1
難度 2/5 1-3 小時 新手友好度 82/100
plotly/plotly.py#5805 · 1 則留言 ·
維護者通常 3 天內回覆
相似的 Issue
-
bug
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 72/100
aws/sagemaker-python-sdk#6554 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 78/100
huggingface/diffusers#15170 ·
維護者通常 1 天內回覆
-
[BUG] LLM conflict check ignores MNEMOSYNE_LLM_MAX_TOKENS, so reasoning models return empty replies未關閉
難度 2/5 1-3 小時 新手友好度 62/100
mnemosyne-oss/mnemosyne#1325 ·
維護者通常 1 天內回覆
-
enhancement meshtastic-2.8
難度 2/5 1-3 小時 新手友好度 62/100
pskillen/meshflow-api#459 ·