[BUG]: Access blocked to OpenStreetMaps raster tiles when saving the graph as .html file

オープン
#5,798 コメント 7 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
javascript, python
領域
frontend, web-dev

調査の方向性

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 の本文から書いたものです。

説明

bug P3 size: 1
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
Image
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時間
マージ済み PR(30日)
12

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

plotly/plotly.py のほかの issue

plotly/plotly.py の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。